Code

Fixed warnings
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Mar 2007 08:33:07 +0000 (08:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Mar 2007 08:33:07 +0000 (08:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5846 594d385d-05f5-0310-b6e9-bd551577e9d8

include/sieve/class_My_Tree.inc

index 229f668a238472d0482333f223fd17070fe23579..412bccb87fd4de4de50d0cb4f3fdc6c82240af2d 100644 (file)
@@ -706,11 +706,12 @@ function sieve_get_strings($data,$id)
 {
   $ret = array();
   if($data[$id]['class'] == "left-bracket"){
-    while($data[$id]['class']  != "right-bracket" && $id < count($data)){
+    while(isset($data[$id]) && $data[$id]['class']  != "right-bracket" && $id < count($data)){
       
       if($data[$id]['class'] == "quoted-string"){
         $ret[] = $data[$id]['text'];
       }
+
       $id ++;
     }
   }elseif($data[$id]['class'] == "quoted-string"){