From f2157ebd14a28b3bc910b808ff996b002c844310 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 3 May 2007 13:30:41 +0000 Subject: [PATCH] Fixed class check git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6257 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/sieve/class_sieveManagement.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.30.2