]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: hide savedsearch butten and subthread button for non local_users
authorrabuzarus <rabuzarus@t-online.de>
Tue, 19 Jun 2018 16:27:54 +0000 (18:27 +0200)
committerrabuzarus <rabuzarus@t-online.de>
Tue, 19 Jun 2018 16:27:54 +0000 (18:27 +0200)
include/text.php
view/theme/frio/theme.php

index 612100cb6715e6765059a46ec708d2418e412693..be8869fb8499d04d492912394d44aa5f38bab9b8 100644 (file)
@@ -984,7 +984,7 @@ function search($s, $id = 'search-box', $url = 'search', $save = false, $aside =
                        '$action_url' => $url,
                        '$search_label' => L10n::t('Search'),
                        '$save_label' => $save_label,
-                       '$savedsearch' => Feature::isEnabled(local_user(),'savedsearch'),
+                       '$savedsearch' => local_user() && Feature::isEnabled(local_user(),'savedsearch'),
                        '$search_hint' => L10n::t('@name, !forum, #tags, content'),
                        '$mode' => $mode
                ];
index 4f5756caf99aba834962e0d14d5dc6b23a237edd..9d2b77d1f1a2796436792f48c88afa964ee66317 100644 (file)
@@ -346,7 +346,12 @@ function frio_display_item(App $a, &$arr)
 {
        // Add subthread to the item menu
        $subthread = [];
-       if (local_user() == $arr['item']['uid'] && $arr['item']['parent'] == $arr['item']['id'] && !$arr['item']['self']) {
+       if (
+               local_user()
+               && local_user() == $arr['item']['uid']
+               && $arr['item']['parent'] == $arr['item']['id']
+               && !$arr['item']['self'])
+       {
                $subthread = [
                        'menu'   => 'follow_thread',
                        'title'  => L10n::t('Follow Thread'),