From: hickert Date: Thu, 20 Sep 2007 13:40:47 +0000 (+0000) Subject: Fixed some PHP5 errors X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eedcc2507c9daf41993143682b8251ce2d96f2a8;p=gosa.git Fixed some PHP5 errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7360 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/godfs/tabs_dfs.inc b/plugins/addons/godfs/tabs_dfs.inc index 02438ebae..026f55aeb 100644 --- a/plugins/addons/godfs/tabs_dfs.inc +++ b/plugins/addons/godfs/tabs_dfs.inc @@ -24,6 +24,7 @@ class dfstabs extends tabs { } function save($ignore_account= FALSE) + { $baseobject = $this->by_object['dfsManagment']; return tabs::save(TRUE); } diff --git a/plugins/admin/systems/class_glpiPrinterAccount.inc b/plugins/admin/systems/class_glpiPrinterAccount.inc index 9a461b785..6447d62ca 100644 --- a/plugins/admin/systems/class_glpiPrinterAccount.inc +++ b/plugins/admin/systems/class_glpiPrinterAccount.inc @@ -534,7 +534,7 @@ class glpiPrinterAccount extends plugin /* if( cur_dialog != false || cur_dialog != NULL) * There is a dialog which wants to be displayed */ - if($this->cur_dialog){ + if($this->cur_dialog && is_object($this->cur_dialog)){ $this->cur_dialog->save_object(); $this->dialog=true; $this->cur_dialog->parent = &$this; diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 969fbf3bc..ccadc0dd4 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -411,7 +411,7 @@ class printgeneric extends plugin /* Display ppd configure/select dialog */ if(isset($_POST['EditDriver'])){ - if($this->PPDdialogToSave){ + if($this->PPDdialogToSave && is_object($this->PPDdialogToSave)){ $this->dialog = $this->PPDdialogToSave; }else{ $this->dialog = new printerPPDDialog($this->config, $this->dn,$this->gotoPrinterPPD);