From: cajus Date: Tue, 12 Feb 2008 11:06:48 +0000 (+0000) Subject: Fixed single-value attributes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e837c1be9478752e9654e1d80d3440c31d965004;p=gosa.git Fixed single-value attributes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8853 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_plugin.inc b/gosa-core/include/class_plugin.inc index 7ca37d200..5fb9fbe2c 100644 --- a/gosa-core/include/class_plugin.inc +++ b/gosa-core/include/class_plugin.inc @@ -212,7 +212,7 @@ class plugin unset($this->saved_attributes[$index]); continue; } - if ($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;