Code

Updated sudo checks
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Aug 2008 12:36:17 +0000 (12:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Aug 2008 12:36:17 +0000 (12:36 +0000)
-Allow 0 as object name.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12210 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc

index f102fb44f7d63a3c04a191ae65fa103c9880b427..1f5f1413e8022fd45003023d97708766cd716ff3 100644 (file)
@@ -561,7 +561,7 @@ class sudo extends plugin
     $message = plugin::check();
 
     /* Is a name given? */
-    if(empty($this->cn)){
+    if($this->cn == ""){
       $message[] = msgPool::required(_("Name"));
     }