From: hickert Date: Fri, 28 Nov 2008 13:05:29 +0000 (+0000) Subject: Updated ldap::get_objectclasses X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=beaf95485ffc659d011062a1d65a500c14809ad5;p=gosa.git 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 --- 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); }