Code

Do not handle lock/unlock actions until a user is selected
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 14:18:53 +0000 (14:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 14:18:53 +0000 (14:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15557 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/users/class_userManagement.inc

index 729a273d8195bc1cdcdc6989c3ef3fc3e9e533fe..99fb427450adc6212f149b07148930e1db857540 100644 (file)
@@ -589,6 +589,7 @@ class userManagement extends management
    */ 
   function lockUsers($action,$target,$all)
   {
+    if(!count($target)) return;
     if($action == "lockUsers"){
       $this->lockEntry($action,$target, $all, "lock");
     }else{