From: hickert Date: Fri, 28 Mar 2008 07:06:38 +0000 (+0000) Subject: Updated class plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2dde9fbde1c62a9296b66d9ff4ecf9ae04e618b7;p=gosa.git Updated class plugin -saved_attributes was not created correctly for array values. Only the first array entry was used {{{ $this->attrs['gotoLdapServer'][0]="0:ldap://server1"; [1] "1:ldap://server2"; }}} Results in {{{ $this->attrs['gotoLdapServer']="0:ldap://server1"; }}} git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10051 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 2bd31a5e3..c852f48bf 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -215,7 +215,7 @@ class plugin unset($this->saved_attributes[$index]); continue; } - if (isset($this->saved_attributes[$index][0]) || $this->saved_attributes[$index]["count"] == 1){ + if (isset($this->saved_attributes[$index][0]) && $this->saved_attributes[$index]["count"] == 1){ $tmp= $this->saved_attributes[$index][0]; unset($this->saved_attributes[$index]); $this->saved_attributes[$index]= $tmp;