Code

Need to check if object is not null.
[gosa.git] / 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'];