X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FText%2FHTML.php;h=e452e68353e5f8db7af39068e94882075157c5a5;hb=5a3991d4f7bc929c1087d9275716fc1c8cc299a6;hp=9b73da56df2e4dc2f2a03817aca5b944cc8fe915;hpb=d4a02dc31408210ab9f67ecac1948dc22b95b8da;p=friendica.git diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index 9b73da56df..e452e68353 100644 --- a/src/Content/Text/HTML.php +++ b/src/Content/Text/HTML.php @@ -908,7 +908,7 @@ class HTML public static function micropro($contact, $redirect = false, $class = '', $textmode = false) { // Use the contact URL if no address is available - if (!x($contact, "addr")) { + if (empty($contact['addr'])) { $contact["addr"] = $contact["url"]; } @@ -924,7 +924,7 @@ class HTML } // If there is some js available we don't need the url - if (x($contact, 'click')) { + if (!empty($contact['click'])) { $url = ''; } @@ -951,7 +951,7 @@ class HTML * * @return string Formatted HTML. */ - public static function search($s, $id = 'search-box', $url = 'search', $save = false, $aside = true) + public static function search($s, $id = 'search-box', $url = 'search', $aside = true) { $mode = 'text'; @@ -966,7 +966,7 @@ class HTML '$action_url' => $url, '$search_label' => L10n::t('Search'), '$save_label' => $save_label, - '$savedsearch' => local_user() && Feature::isEnabled(local_user(), 'savedsearch'), + '$savedsearch' => 'savedsearch', '$search_hint' => L10n::t('@name, !forum, #tags, content'), '$mode' => $mode ];