diff --git a/include/class_tabs.inc b/include/class_tabs.inc
index 8e2d42ca4861c77d3dd7305f14edb0c3610c4ce8..729a441d89e576a5cc511accdd7957eee3e1373d 100644 (file)
--- a/include/class_tabs.inc
+++ b/include/class_tabs.inc
$obj= $this->by_object[$this->current];
$display.= $obj->execute();
$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.= "</td></tr></table>";
/* Footer for tabbed dialog */
$display.= "</td></tr></table>";
$obj= $this->by_object[$this->last];
$obj->save_object ();
$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 */
}
/* Skip if curent and last are the same object */
$this->current, "Saving (current)");
$obj->save_object ();
$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()
}
function gen_tabs()
function check($ignore_account= FALSE)
{
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)
}
function save($ignore_account= FALSE)
$key, "Adapting");
$obj->parent= &$this;
$obj->adapt_from_template($dn);
$key, "Adapting");
$obj->parent= &$this;
$obj->adapt_from_template($dn);
- $this->by_object[$key]= $obj;
+ if (is_php4()){
+ $this->by_object[$key]= $obj;
+ }
}
}
}
}