mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Restructured "dba::exists" function
This commit is contained in:
parent
b14b44e8a8
commit
1d8c91c478
9 changed files with 33 additions and 35 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue