compare strpos result against false

This commit is contained in:
Mario Vavti
2017-11-16 13:10:08 +01:00
parent 78c9f752af
commit cba602bf64
2 changed files with 3 additions and 3 deletions

View File

@@ -274,7 +274,7 @@ EOT;
$app['active'] = true;
if($is_owner) {
if(strpos($app['categories'],'nav_pinned_app')) {
if(strpos($app['categories'],'nav_pinned_app') !== false) {
$navbar_apps[] = Zlib\Apps::app_render($app,'navbar');
}
else {
@@ -282,7 +282,7 @@ EOT;
}
}
elseif(! $is_owner && strpos($app['requires'], 'local_channel') === false) {
if(strpos($app['categories'],'nav_pinned_app')) {
if(strpos($app['categories'],'nav_pinned_app') !== false) {
$navbar_apps[] = Zlib\Apps::app_render($app,'navbar');
}
else {