1
0
Fork 0

The first queries are replaced with the new functions. More to come ...

This commit is contained in:
Michael 2017-05-07 20:52:00 +00:00
commit 2c11e91e65
8 changed files with 32 additions and 54 deletions

View file

@ -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;
}