summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c24abf1)
raw | patch | inline | side by side (parent: c24abf1)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Dec 2009 08:32:22 +0000 (08:32 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Dec 2009 08:32:22 +0000 (08:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14864 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_plugin.inc | patch | blob | history |
index 8f7b4f4b27a65f492a27206501ca2b43d7655ccb..17e05fcc96077ae718a3f044c1f2160897c3a2da 100644 (file)
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];