From: cajus Date: Mon, 26 Feb 2007 10:49:17 +0000 (+0000) Subject: Added more null-checks X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0b3eb4fde59701e9f8b73c401c640a9a538c2371;p=gosa.git Added more null-checks git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5734 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc index 5fffa230f..b335629ea 100644 --- a/plugins/admin/groups/class_groupManagement.inc +++ b/plugins/admin/groups/class_groupManagement.inc @@ -127,7 +127,7 @@ class groupManagement extends plugin /* Only perform copy&paste requests if it is enabled */ /* Get 'dn' from posted 'uid' */ - if(in_array_ics($s_action,array("editPaste","cut","copy")) || $this->CopyPasteHandler->stillOpen()){ + if(in_array_ics($s_action,array("editPaste","cut","copy")) || (isset($this->CopyPasteHandler) && $this->CopyPasteHandler->stillOpen())){ if(isset($this->grouplist[trim($s_entry)]['dn'])){ $dn= $this->grouplist[trim($s_entry)]['dn']; diff --git a/plugins/admin/ogroups/class_ogroupManagement.inc b/plugins/admin/ogroups/class_ogroupManagement.inc index 04d902d8b..728c79c51 100644 --- a/plugins/admin/ogroups/class_ogroupManagement.inc +++ b/plugins/admin/ogroups/class_ogroupManagement.inc @@ -122,7 +122,7 @@ class ogroupManagement extends plugin /* Only perform copy&paste requests if it is enabled */ /* Get 'dn' from posted 'uid' */ - if(in_array_ics($s_action,array("editPaste","cut","copy")) || $this->CopyPasteHandler->stillOpen()){ + if(in_array_ics($s_action,array("editPaste","cut","copy")) || (isset($this->CopyPasteHandler) && $this->CopyPasteHandler->stillOpen())){ if(isset($this->ogrouplist[trim($s_entry)]['dn'])){ $dn= $this->ogrouplist[trim($s_entry)]['dn'];