From: cajus Date: Thu, 3 Dec 2009 08:32:22 +0000 (+0000) Subject: Fix missing elements for copy'n paste X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=231fb9acf4544d17df26fc938c9fa56b2c1fa8bf;p=gosa.git Fix missing elements for copy'n paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14864 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 8f7b4f4b2..17e05fcc9 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -1149,11 +1149,8 @@ class plugin if (isset($source[$var])){ if(isset($source[$var]['count'])){ if($source[$var]['count'] > 1){ - $this->$var = array(); - $tmp = array(); - for($i = 0 ; $i < $source[$var]['count']; $i++){ - $tmp = $source[$var][$i]; - } + $tmp= $source[$var]; + unset($tmp['count']); $this->$var = $tmp; }else{ $this->$var = $source[$var][0];