Code

Added more null-checks
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Feb 2007 10:49:17 +0000 (10:49 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Feb 2007 10:49:17 +0000 (10:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5734 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupManagement.inc
plugins/admin/ogroups/class_ogroupManagement.inc

index 5fffa230f8eb12c85ba32a42f43b994b6235a5de..b335629ea31dcf6313194467a8d1ac6ab46ab756 100644 (file)
@@ -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'];
index 04d902d8bd93a1023fc2d7430b88cb3944803366..728c79c510c3d24edba264b06760859c6d3a46c1 100644 (file)
@@ -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'];