From 0b3eb4fde59701e9f8b73c401c640a9a538c2371 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 26 Feb 2007 10:49:17 +0000 Subject: [PATCH] Added more null-checks git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5734 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupManagement.inc | 2 +- plugins/admin/ogroups/class_ogroupManagement.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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']; -- 2.30.2