From: hickert Date: Wed, 5 May 2010 09:34:55 +0000 (+0000) Subject: Updated property registry X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6f437b3335f1b7c24f52c7c2218b04e3bdea690c;p=gosa.git Updated property registry -UPPER and lowercase given properties will now be found again. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18097 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc index e0e09f94f..22d84c49b 100644 --- a/gosa-core/include/class_configRegistry.inc +++ b/gosa-core/include/class_configRegistry.inc @@ -116,7 +116,7 @@ class configRegistry{ { $id = count($this->properties); $this->properties[$id] = new gosaProperty($this,$class,$data); - $this->mapByName[$class][$data['name']] = $id; + $this->mapByName[$class][strtolower($data['name'])] = $id; $this->mapByClass[$class][] = $id; $this->mapPropertyToClass[$id] = $class; } @@ -128,16 +128,15 @@ class configRegistry{ function propertyExists($class,$name) { - if(!isset($this->mapByName[$class][$name])){ - print_a(array($class,$name)); - - } - return(isset($this->mapByName[$class][$name])); + return(isset($this->mapByName[$class][strtolower($name)])); } private function getId($class,$name) { - return($this->mapByName[$class][$name]); + if(!isset($this->mapByName[$class][strtolower($name)])){ + return(-1); + } + return($this->mapByName[$class][strtolower($name)]); } function getProperty($class,$name)