From 84a1a15abf03721b28b479827cab41aa035cb6b9 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 28 Jul 2006 04:56:04 +0000 Subject: [PATCH] Updated fai get class function git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4332 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions_FAI.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/functions_FAI.inc b/include/functions_FAI.inc index 7bae51a10..6843c0d48 100644 --- a/include/functions_FAI.inc +++ b/include/functions_FAI.inc @@ -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; -- 2.30.2