Code

Need to check if object is not null.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 25 Feb 2007 09:21:36 +0000 (09:21 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 25 Feb 2007 09:21:36 +0000 (09:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5731 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/class_userManagement.inc

index c850727a723f48a99dc60b1eaeba5c753bce33fa..fbb89c73d5dd2ff7b40ca30d1b8e5910a959ca77 100644 (file)
@@ -111,7 +111,7 @@ class userManagement extends plugin
     }
 
     /* 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")) || ($this->CopyPasteHandler && $this->CopyPasteHandler->stillOpen())){
 
       if(isset($this->list[trim($s_entry)]['dn'])){
         $dn= $this->list[trim($s_entry)]['dn'];