Merge pull request #2221 from nextcloud/from-is-featured-to-featured

Error log spam: Cast "isFeatured" to "featured"
This commit is contained in:
Lukas Reschke 2016-11-21 23:11:29 +01:00 committed by GitHub
commit 1e06d0bb47
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,9 @@ class AppSettingsController extends Controller {
$formattedApps = []; $formattedApps = [];
$apps = $this->appFetcher->get(); $apps = $this->appFetcher->get();
foreach($apps as $app) { foreach($apps as $app) {
if (isset($app['isFeatured'])) {
$app['featured'] = $app['isFeatured'];
}
// Skip all apps not in the requested category // Skip all apps not in the requested category
$isInCategory = false; $isInCategory = false;