X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2FDirSearch.php;h=596860823652bd09af7b18ad648b9e69582473b1;hb=1f9b52f2bf62a00add5b62b21e2dd009246345ef;hp=da32358c1c8a0745d8022da9aaa3974a74fb3664;hpb=41a36606c6ee92c914acbb7f6d9ea79c0a149088;p=friendica.git diff --git a/include/DirSearch.php b/include/DirSearch.php index da32358c1c..5968608236 100644 --- a/include/DirSearch.php +++ b/include/DirSearch.php @@ -20,7 +20,7 @@ class DirSearch { */ public static function global_search_by_name($search, $mode = '') { - if ($search) { + if($search) { // check supported networks if (get_config('system','diaspora_enabled')) $diaspora = NETWORK_DIASPORA; @@ -33,11 +33,10 @@ class DirSearch { $ostatus = NETWORK_DFRN; // check if we search only communities or every contact - if ($mode === "community") { + if($mode === "community") $extra_sql = " AND `community`"; - } else { + else $extra_sql = ""; - } $search .= "%";