2
0
Эх сурвалжийг харах

[Web] Delete from sender_acl when deleting an alias

andryyy 6 жил өмнө
parent
commit
2508ee5b69

+ 4 - 0
data/web/inc/functions.mailbox.inc.php

@@ -3434,6 +3434,10 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
             $stmt->execute(array(
               ':id' => $id
             ));
+            $stmt = $pdo->prepare("DELETE FROM `sender_acl` WHERE `send_as` = :alias_address");
+            $stmt->execute(array(
+              ':alias_address' => $alias_data['address']
+            ));
             $_SESSION['return'][] = array(
               'type' => 'success',
               'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),