X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_tabs.inc;h=729a441d89e576a5cc511accdd7957eee3e1373d;hb=a5c0d9327949c29b1ae24d5f65e2eaabf27af2d1;hp=8e2d42ca4861c77d3dd7305f14edb0c3610c4ce8;hpb=3d1efc399f00d13908245eb0791de3502128e1e3;p=gosa.git diff --git a/include/class_tabs.inc b/include/class_tabs.inc index 8e2d42ca4..729a441d8 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -90,7 +90,9 @@ class tabs $obj= $this->by_object[$this->current]; $display.= $obj->execute(); - $this->by_object[$this->current]= $obj; + if (is_php4()){ + $this->by_object[$this->current]= $obj; + } /* Footer for tabbed dialog */ $display.= ""; @@ -106,7 +108,9 @@ class tabs $obj= $this->by_object[$this->last]; $obj->save_object (); - $this->by_object[$this->last]= $obj; + if (is_php4()){ + $this->by_object[$this->last]= $obj; + } } /* Skip if curent and last are the same object */ @@ -122,9 +126,10 @@ class tabs $this->current, "Saving (current)"); $obj->save_object (); - $this->by_object[$this->current]= $obj; + if (is_php4()){ + $this->by_object[$this->current]= $obj; + } } - } function gen_tabs() @@ -210,24 +215,27 @@ class tabs function check($ignore_account= FALSE) { - $this->save_object(TRUE); - $messages= array(); + $this->save_object(TRUE); + $messages= array(); - /* Check all plugins */ - foreach ($this->by_object as $key => $obj){ - if ($obj->is_account || $ignore_account || $obj->ignore_account){ - @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, - $key, "Checking"); + /* Check all plugins */ + foreach ($this->by_object as $key => $obj){ + if ($obj->is_account || $ignore_account || $obj->ignore_account){ + @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, + $key, "Checking"); - $messages= $obj->check(); - if (count($messages)){ - $this->current= $key; - break; - } - } - } + $messages= $obj->check(); + if (is_php4()){ + $this->by_object[$key]= $obj; + } + if (count($messages)){ + $this->current= $key; + break; + } + } + } - return ($messages); + return ($messages); } function save($ignore_account= FALSE) @@ -257,7 +265,9 @@ class tabs $key, "Adapting"); $obj->parent= &$this; $obj->adapt_from_template($dn); - $this->by_object[$key]= $obj; + if (is_php4()){ + $this->by_object[$key]= $obj; + } } }