]> git.mxchange.org Git - friendica.git/blobdiff - mod/search.php
Merge pull request #3121 from annando/1701-bugfix-config
[friendica.git] / mod / search.php
index c19bb27673a83f2d91b6dd8a7a5eb679d4f0f4b8..df604e367c7724a46118dec997da42e1183b5fce 100644 (file)
@@ -17,7 +17,7 @@ function search_saved_searches() {
 
        if (dbm::is_result($r)) {
                $saved = array();
-               foreach($r as $rr) {
+               foreach ($r as $rr) {
                        $saved[] = array(
                                'id'            => $rr['id'],
                                'term'          => $rr['term'],
@@ -43,7 +43,7 @@ function search_saved_searches() {
 }
 
 
-function search_init(&$a) {
+function search_init(App $a) {
 
        $search = ((x($_GET,'search')) ? notags(trim(rawurldecode($_GET['search']))) : '');
 
@@ -81,13 +81,13 @@ function search_init(&$a) {
 
 
 
-function search_post(&$a) {
+function search_post(App $a) {
        if(x($_POST,'search'))
                $a->data['search'] = $_POST['search'];
 }
 
 
-function search_content(&$a) {
+function search_content(App $a) {
 
        if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
                notice( t('Public access denied.') . EOL);