Code

Updated fai get class function
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Jul 2006 04:56:04 +0000 (04:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Jul 2006 04:56:04 +0000 (04:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4332 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions_FAI.inc

index 7bae51a105c77df6227b2f6ccc81b7aaf20d0141..6843c0d48610a32c24fdfcf0b5dbf5515a6f75c5 100644 (file)
@@ -13,12 +13,16 @@ function get_all_objects_for_given_base($Current_DN,$filter,$detailed = false)
   global $config;
   $ldap = $config->get_ldap_link();
   $ldap->cd($config->current['BASE']);
+  $res = array();
+  $tmp = array();
+
+  if(!is_release_department($Current_DN)) {
+    return($res);
+  }
 
   /* Collect some basic informations and initialize some variables */ 
   $base_release       = get_release_dn($Current_DN);
   $previous_releases  = array_reverse(get_previous_releases_of_this_release($base_release,true));
-  $res = array();
-  $tmp = array();
 
   /* We must also include the given release dn */
   $previous_releases[] = $base_release;