Code

We need more checks in case of disabled Copy & PAste or snapshots
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Sep 2007 14:06:38 +0000 (14:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Sep 2007 14:06:38 +0000 (14:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7334 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/class_divListUsers.inc

index 843930b7c098e0308139776d84b362867e50f49d..5a1c550d7edd371af5f82ef951aebd9957e51932 100644 (file)
@@ -136,7 +136,7 @@ class divListUsers extends MultiSelectWindow
     /* Get copy & paste icon */
     $acl_all  = $ui->has_complete_category_acls($this->selectedBase,"users") ;
     $acl      = $ui->get_permissions($this->selectedBase,"users/user");
-    if(preg_match("/(c.*w|w.*c)/",$acl_all) &&  $this->parent->CopyPasteHandler){
+    if(preg_match("/(c.*w|w.*c)/",$acl_all) && is_object($this->parent->CopyPasteHandler)){
       $Copy_Paste = $this->parent->CopyPasteHandler->generatePasteIcon();
     }else{
       $Copy_Paste ="";