X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsearch.php;h=9c82b38e818396c724037dc2f70d38b1bfcf0447;hb=bca1dcf2d6e243ca803e590168305ed5a232d923;hp=793a8c2bb282e9f26a14f9689abd3ea3caead314;hpb=5654ce926ca012acd9f725c8c7d6e32609a17646;p=friendica.git diff --git a/mod/search.php b/mod/search.php index 793a8c2bb2..9c82b38e81 100644 --- a/mod/search.php +++ b/mod/search.php @@ -9,6 +9,11 @@ function search_post(&$a) { function search_content(&$a) { + if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + notice( t('Public access denied.') . EOL); + return; + } + require_once("include/bbcode.php"); require_once('include/security.php'); require_once('include/conversation.php'); @@ -61,7 +66,7 @@ function search_content(&$a) { $a->set_pager_total($r[0]['total']); if(! $r[0]['total']) { - notice( t('No results.') . EOL); + info( t('No results.') . EOL); return $o; }