tbrehm
2013-04-19 3f478f7b37eb314c7dba33af10e8d32d5f2fa579
interface/web/mail/mail_domain_del.php
@@ -59,8 +59,8 @@
      // Before we delete the email domain,
      // we will delete all depending records.
      
      // Delete all forwardings where the osurce or destination belongs to this domain
      $records = $app->db->queryAllRecords("SELECT forwarding_id as id FROM mail_forwarding WHERE source like '%@".$app->db->quote($domain)."' OR (destination like '%@".$app->db->quote($domain)."' AND type != 'forward'");
      // Delete all forwardings where the source or destination belongs to this domain
      $records = $app->db->queryAllRecords("SELECT forwarding_id as id FROM mail_forwarding WHERE source like '%@".$app->db->quote($domain)."' OR (destination like '%@".$app->db->quote($domain)."' AND type != 'forward')");
      foreach($records as $rec) {
         $app->db->datalogDelete('mail_forwarding','forwarding_id',$rec['id']);
      }