]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/RemoveContact.php
Improve expire for item-content and item-activity
[friendica.git] / src / Worker / RemoveContact.php
index 811b0295fb460f3bdea67f60cf4375d7ab3fcccd..9a7a257770ba8982b42d6df1fca13341e08babd6 100644 (file)
@@ -8,16 +8,18 @@ namespace Friendica\Worker;
 use Friendica\Core\Config;
 use dba;
 
+require_once 'include/dba.php';
+
 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]);
        }
 }