]> git.mxchange.org Git - friendica.git/blobdiff - mod/directory.php
Beautified the code
[friendica.git] / mod / directory.php
index 9cddf3b4b54369c382c624292f67ec3ee12756da..411024dc1aace31a38e12b6f735d5a693a5a0fd7 100644 (file)
@@ -76,6 +76,8 @@ function directory_content(App $a)
                                (`profile`.`education` LIKE '%$search%') OR
                                (`profile`.`pub_keywords` LIKE '%$search%') OR
                                (`profile`.`prv_keywords` LIKE '%$search%'))";
+       } else {
+               $sql_extra = '';
        }
 
        $publish = (Config::get('system', 'publish_all') ? '' : " AND `publish` = 1 " );
@@ -147,6 +149,8 @@ function directory_content(App $a)
                                || (x($profile, 'country-name') == 1)
                        ) {
                                $location = L10n::t('Location:');
+                       } else {
+                               $location = '';
                        }
 
                        $gender   = ((x($profile, 'gender')   == 1) ? L10n::t('Gender:')   : false);