X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fremove_contact.php;h=92f712255771bb05537801b2451b3533448ca89b;hb=8cb4a8d0c420dc7c7fe9b96a43b78016c105a8fc;hp=bd736e548447eb98f6238a72925b53b98b739bc8;hpb=1d427aa214b431a0d31da55ae996bb9a33da8ae8;p=friendica.git diff --git a/include/remove_contact.php b/include/remove_contact.php index bd736e5484..92f7122557 100644 --- a/include/remove_contact.php +++ b/include/remove_contact.php @@ -4,7 +4,7 @@ * @brief Removes orphaned data from deleted contacts */ -use \Friendica\Core\Config; +use Friendica\Core\Config; function remove_contact_run($argv, $argc) { if ($argc != 2) { @@ -14,7 +14,7 @@ function remove_contact_run($argv, $argc) { $id = intval($argv[1]); // Only delete if the contact doesn't exist (anymore) - $r = q("SELECT `id` FROM `contact` WHERE `id` = %d", intval($id)); + $r = dba::select('contact', array('id'), array('id' => $id), array('limit' => 1)); if (dbm::is_result($r)) { return; }