Code

Fixed several undefined index errors if no entry was shown
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Oct 2005 07:47:09 +0000 (07:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Oct 2005 07:47:09 +0000 (07:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1529 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiManagement.inc
plugins/admin/fai/class_faiProfileEntry.inc

index c6663ea20c5875974ec5068a8a9fcc0dfc7ea398..b600298a12fdcb3c2d85d5f89640f9bed21d9c8e 100644 (file)
@@ -556,7 +556,7 @@ class faiManagement extends plugin
                                        $info = _("Templates");
                                        break;
                                        default                                         : 
-                                       $img="<img src='images/empty.png' >";$info = "";break;
+                                       $img="<img src='images/empty.png' alt=''>";$info = "";break;
 
                                }
                                
index 24298a312be0b5a69d463fd9cb928ea66028ab13..ef83d1c84952c19d0a2251468ba7603e674c51a2 100644 (file)
@@ -20,7 +20,7 @@ class faiProfileEntry extends plugin
     plugin::plugin ($config, $dn);
 
     /* Search only in fai tree */
-    $base = $_SESSION['faifilter']['base'];
+    $base = "ou=fai,ou=configs,ou=systems,".$_SESSION['faifilter']['base'];
 
     /* Create array with categories to be able to sort different types of objects */
     $categories = array("FAIscript","FAItemplate","FAIhook","FAIvariable","FAIpartitionTable","FAIpackage");
@@ -30,6 +30,8 @@ class faiProfileEntry extends plugin
     $ldap->cd($base);
     $ldap->search("(| (objectClass=FAIscript)(objectClass=FAItemplate)(objectClass=FAIhook)(objectClass=FAIvariable)
                       (objectClass=FAIpartitionTable)(objectClass=FAIpackage))",array("*"));
+    
+    $sort=array();
     while($attrs = $ldap->fetch()){
       
       /* Only use objects which have cn set */
@@ -48,7 +50,7 @@ class faiProfileEntry extends plugin
         }
       }
     }
-
+    $tmp = array();
     ksort($sort);
     foreach($sort as $name){
       $tmp[$name] =$this->FAIAllclasses[$name];