diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-21 21:34:37 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-21 21:34:37 +0100 |
commit | e2bfce0d263471014b18f813de93b6fdfdaaff39 (patch) | |
tree | 85f5ea0158d61dd10892305311c1d8d964235526 /settings/Controller | |
parent | 206ef51eac4f65242658733f6899f7fe3fa473b2 (diff) | |
download | nextcloud-server-e2bfce0d263471014b18f813de93b6fdfdaaff39.tar.gz nextcloud-server-e2bfce0d263471014b18f813de93b6fdfdaaff39.zip |
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>
Diffstat (limited to 'settings/Controller')
-rw-r--r-- | settings/Controller/AppSettingsController.php | 3 |
1 files changed, 3 insertions, 0 deletions
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; |