Code

Fixed single-value attributes
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Feb 2008 11:06:48 +0000 (11:06 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Feb 2008 11:06:48 +0000 (11:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8853 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_plugin.inc

index 7ca37d200c20ae45d5b62c5500941b94cc79d90d..5fb9fbe2c0d6a033cc0c92a034a5cdfdf95f8303 100644 (file)
@@ -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;