Code

replaced plugbottom by pluin-actions
[gosa.git] / gosa-plugins / mail / personal / mail / sieve / class_semantics.inc
index 1c00051c052bb1f477b3eead6c19f9433e7ce445..8c6d05f026c17d26528b2bc09533dee75848e571 100644 (file)
@@ -454,7 +454,7 @@ class Semantics
                }
 
                // Check if command may appear here
-               if (!ereg($this->s_['valid_after'], $prev))
+               if (strstr($prev, $this->s_['valid_after'] === false))
                {
 #                      $this->message = 'line '. $line .': "'. $this->command_ .'" may not appear after "'. $prev .'"';
 #                      return false;