Code

Added check again, to much deleted
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Oct 2005 08:44:37 +0000 (08:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Oct 2005 08:44:37 +0000 (08:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1636 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiProfile.inc

index 809a1eb2275ed23e7a9c0bf69aea57174521696b..aa6019971472662f8a41b5e8958d0a9dbc5f87a9 100644 (file)
@@ -216,6 +216,10 @@ class faiProfile extends plugin
       $message[]=_("Please assign at least one class to this  profile.");
     }
  
+    if(empty($this->cn)){
+      $message[]=_("Please enter a valid name.");
+    }
+
     $ldap = $this->config->get_ldap_link();
     $ldap->cd($_SESSION['faifilter']['base']);
     $ldap->search("(&(objectClass=FAIprofile)(cn=".$this->cn.")(!cn=".$this->old_cn."))",array("*"));