X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2FDirSearch.php;h=596860823652bd09af7b18ad648b9e69582473b1;hb=c2820c452fbb9b2d26594fb504fe0dfc8206c5a2;hp=da32358c1c8a0745d8022da9aaa3974a74fb3664;hpb=9c2c4839968169a191084d6d2b0d629d82430e67;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 .= "%";