Restructured "dba::exists" function
This commit is contained in:
@@ -14,8 +14,8 @@ function remove_contact_run($argv, $argc) {
|
||||
$id = intval($argv[1]);
|
||||
|
||||
// Only delete if the contact doesn't exist (anymore)
|
||||
$r = dba::select('contact', array('id'), array('id' => $id), array('limit' => 1));
|
||||
if (dbm::is_result($r)) {
|
||||
$r = dba::exists('contact', array('id' => $id));
|
||||
if ($r) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user