Code

Updated css und div framework.
[gosa.git] / plugins / admin / groups / class_groupGeneric.inc
index dd0606557675e120b721d2a893cd856f8c822f85..8858285e8947b7618882d8f19a783f514c52f905 100644 (file)
@@ -231,7 +231,7 @@ class group extends plugin
 
         /* Check if selected base is valid */
         $tmp = $this->get_allowed_bases();
-        if(isset($tmp[$_POST['base']])){
+        if(isset($tmp[$this->dialog->isSelected()])){
           $this->base = $this->dialog->isSelected();
         }
         $this->dialog= false;
@@ -819,14 +819,14 @@ class group extends plugin
     }
 
     /* Find out next free id near to UID_BASE */
-    for ($id= $this->config->current['UIDBASE']; $id++; $id<65000){
+    for ($id= $this->config->current['UIDBASE']; $id++; $id < pow(2,32)){
       if (!in_array($id, $ids)){
         return ($id);
       }
     }
 
-    /* Should not happen */
-    if ($id == 65000){
+    /* Check if id reached maximum */
+    if ($id >= pow(2,32)){
       print_red(_("Too many users, can't allocate a free ID!"));
       exit;
     }