From 152391d4a351befee3887e8b6c1fd1b4d3b2ca4a Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 20 Oct 2005 08:44:37 +0000 Subject: [PATCH] Added check again, to much deleted git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1636 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiProfile.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/admin/fai/class_faiProfile.inc b/plugins/admin/fai/class_faiProfile.inc index 809a1eb22..aa6019971 100644 --- a/plugins/admin/fai/class_faiProfile.inc +++ b/plugins/admin/fai/class_faiProfile.inc @@ -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("*")); -- 2.30.2