Cast "isFeatured" to "featured"
The appstore returns a "isFeatured" in the current API revision. We need to cast this thus. Fixes the following error log message when opening the tab "Customization": > Undefined index: featured at /media/psf/stable9/settings/Controller/AppSettingsController.php#233 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
206ef51eac
commit
e2bfce0d26
|
@ -154,6 +154,9 @@ class AppSettingsController extends Controller {
|
|||
$formattedApps = [];
|
||||
$apps = $this->appFetcher->get();
|
||||
foreach($apps as $app) {
|
||||
if (isset($app['isFeatured'])) {
|
||||
$app['featured'] = $app['isFeatured'];
|
||||
}
|
||||
|
||||
// Skip all apps not in the requested category
|
||||
$isInCategory = false;
|
||||
|
|
Loading…
Reference in New Issue