Code

Fixed missing description error
[gosa.git] / plugins / admin / ogroups / class_ogroupManagement.inc
index c90fa8ee787b6480098277368db2cf5b82aa9ad5..1f33b87d3eab3af9f3a09e2fd78f1994d5a8fdcf 100644 (file)
@@ -597,10 +597,10 @@ name='dep_root' alt='"._("Root")."'> ".
     }
     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];
       }
     }
     /* END NEW LIST MANAGMENT