Code

Fixed require initialization
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Mar 2007 07:21:00 +0000 (07:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Mar 2007 07:21:00 +0000 (07:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5828 594d385d-05f5-0310-b6e9-bd551577e9d8

include/sieve/class_sieveElement_Require.inc

index c7138deb569e76f8eb22d79fecf2cda365c61d67..fac16e2969e38c12667bae0b95dc9b7ec72eab89 100644 (file)
@@ -4,12 +4,14 @@ class sieve_require
 {
   var $data = array();
   var $object_id = -1;
-  
-  function sieve_require($data,$object_id)
+  var $parent = NULL;  
+
+  function sieve_require($data,$object_id,$parent)
   {
+    $this->parent = $parent;
+    $this->object_id = $object_id;
     if($data != NULL){
 
-      $this->object_id = $object_id;
       foreach($data['ELEMENTS'] as $node ){
         if(in_array($node['class'],array("quoted-string","text"))){
           $this->data[] = preg_replace("/\"/","",$node['text']);