fixing a deletion bug in mail
This commit is contained in:
parent
bcef4f9683
commit
983e15408d
|
@ -279,9 +279,11 @@ class m_mail {
|
||||||
*/
|
*/
|
||||||
function hook_dom_del_mx_domain($dom_id) {
|
function hook_dom_del_mx_domain($dom_id) {
|
||||||
$list=$this->enum_domain_mails($dom_id,"",0,-1);
|
$list=$this->enum_domain_mails($dom_id,"",0,-1);
|
||||||
|
if (is_array($list)) {
|
||||||
foreach($list as $one) {
|
foreach($list as $one) {
|
||||||
$this->delete($one["id"]);
|
$this->delete($one["id"]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue