aboutsummaryrefslogtreecommitdiffstats
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
parent78c9f752af8db5db290a57224fa1d0239a36a34d (diff)
downloadvolse-hubzilla-cba602bf64dd4e9566e5c060c38480128735a60d.tar.gz
volse-hubzilla-cba602bf64dd4e9566e5c060c38480128735a60d.tar.bz2
volse-hubzilla-cba602bf64dd4e9566e5c060c38480128735a60d.zip
compare strpos result against false
-rw-r--r--include/nav.php4
-rw-r--r--view/tpl/app.tpl2
2 files changed, 3 insertions, 3 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 {
diff --git a/view/tpl/app.tpl b/view/tpl/app.tpl
index c8bbc4ce1..7d2e46c59 100644
--- a/view/tpl/app.tpl
+++ b/view/tpl/app.tpl
@@ -12,7 +12,7 @@
</div>
{{/if}}
{{if $install || $update || $delete || $feature}}
- <div class="app-tools">
+ <div class="text-center app-tools">
<form action="{{$hosturl}}appman" method="post">
<input type="hidden" name="papp" value="{{$app.papp}}" />
{{if $install}}<button type="submit" name="install" value="{{$install}}" class="btn btn-outline-secondary btn-sm" title="{{$install}}" ><i class="fa fa-fw fa-arrow-circle-o-down" ></i></button>{{/if}}