aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-16 13:10:08 +0100
committerMario Vavti <mario@mariovavti.com>2017-11-16 13:10:08 +0100
commitcba602bf64dd4e9566e5c060c38480128735a60d (patch)
treefe07c51ed8c735adb0e04163f1bc9fe29495e520 /include/nav.php
parent78c9f752af8db5db290a57224fa1d0239a36a34d (diff)
downloadvolse-hubzilla-cba602bf64dd4e9566e5c060c38480128735a60d.tar.gz
volse-hubzilla-cba602bf64dd4e9566e5c060c38480128735a60d.tar.bz2
volse-hubzilla-cba602bf64dd4e9566e5c060c38480128735a60d.zip
compare strpos result against false
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php
index 8d39d492a..2dcf68bc8 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -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 {