mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +03:00
parent
0ff571db14
commit
e3b404c983
1 changed files with 4 additions and 2 deletions
|
|
@ -492,11 +492,13 @@ class PdoAddressBook
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function DeleteAllContacts() : bool
|
public function DeleteAllContacts(string $sEmail) : bool
|
||||||
{
|
{
|
||||||
$this->SyncDatabase();
|
$this->SyncDatabase();
|
||||||
|
|
||||||
$aParams = array(':id_user' => array($this->iUserID, \PDO::PARAM_INT));
|
$iUserID = $this->getUserId($sEmail);
|
||||||
|
|
||||||
|
$aParams = array(':id_user' => array($iUserID, \PDO::PARAM_INT));
|
||||||
|
|
||||||
$this->prepareAndExecute('DELETE FROM rainloop_ab_properties WHERE id_user = :id_user', $aParams);
|
$this->prepareAndExecute('DELETE FROM rainloop_ab_properties WHERE id_user = :id_user', $aParams);
|
||||||
$this->prepareAndExecute('DELETE FROM rainloop_ab_contacts WHERE id_user = :id_user', $aParams);
|
$this->prepareAndExecute('DELETE FROM rainloop_ab_contacts WHERE id_user = :id_user', $aParams);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue