index 2bc8db0bfd1f2d5282620010bf0264abdd3a1511..cac248e2ec5f80e7b5a332908440beddba8d9573 100644 (file)
tabs::save_object($save_current);
/* Update reference, transfer variables */
- $this->by_object['termstartup']->gotoTerminalPath=
- $this->by_object['termgeneric']->gotoTerminalPath;
+ if(isset($this->by_object['termstartup'])){
+ $this->by_object['termstartup']->gotoTerminalPath=
+ $this->by_object['termgeneric']->gotoTerminalPath;
+ }
+
+ /* Assign current cn to all other plugins */
+ $baseobject= $this->by_object['termgeneric'];
+ foreach ($this->by_object as $key => $obj){
+ $this->by_object[$key]->cn= $baseobject->cn;
+ }
}
}
tabs::save(TRUE);
- if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){
- $this->by_object['printgeneric']->remove_from_parent();
+ if(isset($this->by_object['printgeneric'])){
+ if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){
+ $this->by_object['printgeneric']->remove_from_parent();
+ }
}
/* Fix tagging if needed */