[Svn] r2536 - trunk/roundcubemail/plugins/managesieve

trac at roundcube.net trac at roundcube.net
Tue May 26 08:16:11 CEST 2009


Author: alec
Date: 2009-05-26 01:16:11 -0500 (Tue, 26 May 2009)
New Revision: 2536

Modified:
   trunk/roundcubemail/plugins/managesieve/managesieve.php
Log:
- Fix "PHP Fatal error: Call to undefined function check_email" (#1485871)


Modified: trunk/roundcubemail/plugins/managesieve/managesieve.php
===================================================================
--- trunk/roundcubemail/plugins/managesieve/managesieve.php	2009-05-25 16:26:05 UTC (rev 2535)
+++ trunk/roundcubemail/plugins/managesieve/managesieve.php	2009-05-26 06:16:11 UTC (rev 2536)
@@ -367,7 +367,7 @@
 
     	    if ($this->form['actions'][$i]['target'] == '')
     	      $this->errors['actions'][$i]['target'] = $this->gettext('cannotbeempty');
-    	    else if (!check_email($this->form['actions'][$i]['target']))
+    	    else if (!$this->check_email($this->form['actions'][$i]['target']))
     	      $this->errors['actions'][$i]['target'] = $this->gettext('noemailwarning');
     	  break;
           case 'vacation':
@@ -382,7 +382,7 @@
 		$address = trim($address);
 		if (!$address)
 	          unset($this->form['actions'][$i]['addresses'][$aidx]);
-		else if(!check_email($address)) {
+		else if(!$this->check_email($address)) {
 	          $this->errors['actions'][$i]['addresses'] = $this->gettext('noemailwarning');
 	          break;
 		} else

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list