tbrehm
2009-06-21 89623defaa2cb2a71861d9dac4594c6c0618191a
interface/web/mail/mail_forward_edit.php
@@ -1,6 +1,6 @@
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
Copyright (c) 2005 - 2009, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
@@ -123,6 +123,11 @@
      unset($this->dataRecord["email_local_part"]);
      unset($this->dataRecord["email_domain"]);
      
      //* Check if there is no mailbox with this address
      $tmp = $app->db->queryOneRecord("SELECT count(mailuser_id) as number FROM mail_user WHERE email = '".$app->db->quote($this->dataRecord["source"])."'");
      if($tmp['number'] > 0) $app->tform->errorMessage .= $app->tform->lng("duplicate_mailbox_txt")."<br>";
      unset($tmp);
      parent::onSubmit();
   }