]> git.mxchange.org Git - friendica.git/blobdiff - include/DirSearch.php
was a bit confusing for me or I was not sleeping to much ...
[friendica.git] / include / DirSearch.php
index da32358c1c8a0745d8022da9aaa3974a74fb3664..596860823652bd09af7b18ad648b9e69582473b1 100644 (file)
@@ -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 .= "%";