tbrehm
2013-01-03 10b4c85a7686da07bddb5779f8ceea48acdf412e
interface/web/mail/mail_domain_del.php
@@ -60,7 +60,7 @@
      // 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)."'");
      $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']);
      }