From beaf95485ffc659d011062a1d65a500c14809ad5 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 28 Nov 2008 13:05:29 +0000 Subject: [PATCH] Updated ldap::get_objectclasses -Allow reload of cached objectclasses git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13076 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ldap.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index 1c8b758f2..1d00c9466 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -1197,7 +1197,7 @@ class LDAP{ } - function get_objectclasses() + function get_objectclasses( $force_reload = FALSE) { $objectclasses = array(); global $config; @@ -1210,7 +1210,7 @@ class LDAP{ } /* Return the cached results. */ - if(class_available('session') && session::is_set("LDAP_CACHE::get_objectclasses")){ + if(class_available('session') && session::is_set("LDAP_CACHE::get_objectclasses") && !$force_reload){ $objectclasses = session::get("LDAP_CACHE::get_objectclasses"); return($objectclasses); } -- 2.30.2