]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Wrong function in search
authorMichael <heluecht@pirati.ca>
Sat, 7 Oct 2017 19:51:49 +0000 (19:51 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 7 Oct 2017 19:51:49 +0000 (19:51 +0000)
mod/search.php

index ee652ee8aa9431f7bace8b1bf01ba242211f7100..1d28fe141ac6a15642176ee3f6f473579eae43c7 100644 (file)
@@ -57,11 +57,11 @@ function search_init(App $a) {
                                dbesc($search)
                        );
                        if (!dbm::is_result($r)) {
-                               dbm::insert('search', array('uid' => local_user(), 'term' => $search));
+                               dba::insert('search', array('uid' => local_user(), 'term' => $search));
                        }
                }
                if (x($_GET,'remove') && $search) {
-                       dbm::delete('search', array('uid' => local_user(), 'term' => $search));
+                       dba::delete('search', array('uid' => local_user(), 'term' => $search));
                }
 
                $a->page['aside'] .= search_saved_searches();