From 1e487a847fc365e0b86d4ac07501fb6a23f24ba4 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 26 May 2009 06:16:11 +0000 Subject: - Fix "PHP Fatal error: Call to undefined function check_email" (#1485871) --- plugins/managesieve/managesieve.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php index ae92ff975..d29ad345e 100644 --- a/plugins/managesieve/managesieve.php +++ b/plugins/managesieve/managesieve.php @@ -367,7 +367,7 @@ class managesieve extends rcube_plugin 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 @@ class managesieve extends rcube_plugin $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 -- cgit v1.2.3