]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/RemoveContact.php
Merge pull request #5563 from MrPetovan/bug/5470-fix-various-notices
[friendica.git] / src / Worker / RemoveContact.php
index 4098d66bc59648c227fc170b187356c76209b5d7..40ac937f100ed4656a3ff251eecceea7aeb4bfbe 100644 (file)
@@ -5,8 +5,7 @@
  */
 namespace Friendica\Worker;
 
-use Friendica\Core\Config;
-use dba;
+use Friendica\Database\DBA;
 
 require_once 'include/dba.php';
 
@@ -14,12 +13,12 @@ class RemoveContact {
        public static function execute($id) {
 
                // Only delete if the contact doesn't exist (anymore)
-               $r = dba::exists('contact', array('id' => $id));
+               $r = DBA::exists('contact', ['id' => $id]);
                if ($r) {
                        return;
                }
 
                // Now we delete all the depending table entries
-               dba::delete('contact', array('id' => $id));
+               DBA::delete('contact', ['id' => $id]);
        }
 }