Code

Fixed missing description error
[gosa.git] / plugins / admin / fai / class_faiManagement.inc
index 5ec39d073f49be4a554c5b3b6a710bb67c0cea45..1542bf1d093d511ce4eafe237e5fdef63c4d9a1f 100644 (file)
@@ -646,10 +646,10 @@ class faiManagement extends plugin
                }
                ksort($tmp);
                foreach($tmp as $value){
-                       if($value["description"][0]!=".."){
+                       if(isset($value["description"][0])){
                                $this->departments[$value['dn']]=convert_department_dn2($value['dn'])." - [".$value["description"][0]."]";
                        }else{
-                               $this->departments[$value['dn']]=$value["description"][0];
+                               $this->departments[$value['dn']]=convert_department_dn2($value['dn']);//$value["description"][0];
                        }
                }