Code

Updated fai listing.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Nov 2008 09:20:24 +0000 (09:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Nov 2008 09:20:24 +0000 (09:20 +0000)
-Opsi products don't have a valid obejct dn which led into warnings. Fixed.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12960 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_divListFai.inc

index ebb49b04b7798c7118cf1d8416360feed296a601..6e897c156e13f39916239844d8090962b3844178 100644 (file)
@@ -313,7 +313,11 @@ class divListFai extends MultiSelectWindow
 
         $display = "<div style='overflow:hidden; height:1em;'>".$display."</div>";
 
-       /* Create each field */
+        /* Some objects are non ldap objects which do not have a dn.
+         */
+        if(!isset($value['dn'])) $value['dn'] = "";
+
+        /* Create each field */
        $field0 = array("string" => "<input type='checkbox' id='item_selected_".$key."' name='item_selected_".$key."'>" ,
            "attach" => "style='width:20px;'");
        $field1 = array("string" => $img , "attach" => "style='text-align:center;width:20px;'");