]> git.mxchange.org Git - friendica.git/blobdiff - mod/fsuggest.php
Class file relocations
[friendica.git] / mod / fsuggest.php
index efaf100efcaa1bf3b9535d4343bcfcf4265b8988..124abd464bf0ae8fae0ea3a440a3346f862b2729 100644 (file)
@@ -2,6 +2,7 @@
 
 use Friendica\App;
 use Friendica\Core\Worker;
+use Friendica\Database\DBM;
 
 function fsuggest_post(App $a) {
 
@@ -19,7 +20,7 @@ function fsuggest_post(App $a) {
                intval($contact_id),
                intval(local_user())
        );
-       if (! dbm::is_result($r)) {
+       if (! DBM::is_result($r)) {
                notice( t('Contact not found.') . EOL);
                return;
        }
@@ -36,7 +37,7 @@ function fsuggest_post(App $a) {
                        intval($new_contact),
                        intval(local_user())
                );
-               if (dbm::is_result($r)) {
+               if (DBM::is_result($r)) {
 
                        $x = q("INSERT INTO `fsuggest` ( `uid`,`cid`,`name`,`url`,`request`,`photo`,`note`,`created`)
                                VALUES ( %d, %d, '%s','%s','%s','%s','%s','%s')",
@@ -53,7 +54,7 @@ function fsuggest_post(App $a) {
                                dbesc($hash),
                                intval(local_user())
                        );
-                       if (dbm::is_result($r)) {
+                       if (DBM::is_result($r)) {
                                $fsuggest_id = $r[0]['id'];
                                q("UPDATE `fsuggest` SET `note` = '%s' WHERE `id` = %d AND `uid` = %d",
                                        dbesc($note),
@@ -91,7 +92,7 @@ function fsuggest_content(App $a) {
                intval($contact_id),
                intval(local_user())
        );
-       if (! dbm::is_result($r)) {
+       if (! DBM::is_result($r)) {
                notice( t('Contact not found.') . EOL);
                return;
        }