From e2bfce0d263471014b18f813de93b6fdfdaaff39 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 21 Nov 2016 21:34:37 +0100 Subject: [PATCH] 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 --- settings/Controller/AppSettingsController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php index b668c5cfb38..8d12b2a85a2 100644 --- a/settings/Controller/AppSettingsController.php +++ b/settings/Controller/AppSettingsController.php @@ -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; -- 2.39.5