From af3bc52a98ab2823f4012452112116d5a6da76d6 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Nov 2008 07:38:44 +0000 Subject: [PATCH] Updated performance improvements git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12859 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_plugin.inc | 2 +- gosa-core/include/functions.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 4af34f1c6..88fccb4a0 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -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]; } } diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index df091fca6..7d97d0117 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -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]); -- 2.30.2