Code

Updated performance improvements
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Nov 2008 07:38:44 +0000 (07:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Nov 2008 07:38:44 +0000 (07:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12859 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_plugin.inc
gosa-core/include/functions.inc

index 4af34f1c63034b6943884472db98e7a5bd36c623..88fccb4a09552577a803433ada5220f8e21fa9a3 100644 (file)
@@ -168,7 +168,7 @@ class plugin
       foreach ($this->attributes as $val){
         $found= array_key_ics($val, $this->attrs);
         if ($found != ""){
-          $this->$val= $this->attrs["$found"][0];
+          $this->$val= $found[0];
         }
       }
 
index df091fca67fe5fd92252ededf500461974d146e8..7d97d0117a934214f97b812d546bcfdfab67ba74 100644 (file)
@@ -1989,7 +1989,7 @@ function progressbar($percentage,$width=100,$height=15,$showvalue=false)
 
 function array_key_ics($ikey, $items)
 {
-  $tmp= array_change_key_case($itmes, CASE_LOWER);
+  $tmp= array_change_key_case($items, CASE_LOWER);
   $ikey= strtolower($ikey);
   if (isset($tmp[$ikey])){
     return($tmp[$ikey]);