From: hickert Date: Thu, 3 May 2007 13:30:41 +0000 (+0000) Subject: Fixed class check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f2157ebd14a28b3bc910b808ff996b002c844310;p=gosa.git Fixed class check git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6257 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/sieve/class_sieveManagement.inc b/include/sieve/class_sieveManagement.inc index b8edabbc1..72e932118 100644 --- a/include/sieve/class_sieveManagement.inc +++ b/include/sieve/class_sieveManagement.inc @@ -715,7 +715,8 @@ class sieveManagement extends plugin } return(FALSE); } - if(!is_object($this->current_handler) || get_class($this->current_handler) != "My_Parser"){ + + if(!is_object($this->current_handler) || !preg_match("/My_Parser/i",get_class($this->current_handler))){ trigger_error("Can't add new element, there is no valid script editor opened."); return(FALSE); }