From: hickert Date: Tue, 27 Mar 2007 07:15:12 +0000 (+0000) Subject: Add require values for numeric checks automatically X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=13c82f8bd40f7894658a8f969bcd957d7f893872;p=gosa.git Add require values for numeric checks automatically git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5892 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/sieve/class_sieveElement_If.inc b/include/sieve/class_sieveElement_If.inc index 99f170df2..c4808ce52 100644 --- a/include/sieve/class_sieveElement_If.inc +++ b/include/sieve/class_sieveElement_If.inc @@ -598,9 +598,12 @@ class sieve_if if(!isset($match_types[$mt])){ $parsed[$key]['LastError'] = _("Invalid match type given."); } - if($mt == ":regex"){ - $this->parent->add_require("regex"); - } + if($mt == ":regex"){ + $this->parent->add_require("regex"); + } + if($mt == ":count"){ + $this->parent->add_require("comparator-i;ascii-numeric"); + } $parsed[$key]['Match_type'] = $mt; }