fixing a deletion bug in mail

This commit is contained in:
Benjamin Sonntag 2012-08-25 14:15:03 +00:00
parent bcef4f9683
commit 983e15408d
1 changed files with 4 additions and 2 deletions

View File

@ -279,8 +279,10 @@ class m_mail {
*/
function hook_dom_del_mx_domain($dom_id) {
$list=$this->enum_domain_mails($dom_id,"",0,-1);
foreach($list as $one) {
$this->delete($one["id"]);
if (is_array($list)) {
foreach($list as $one) {
$this->delete($one["id"]);
}
}
return true;
}