diff --git a/public_html/includes/class/class.LSsearch.php b/public_html/includes/class/class.LSsearch.php index 44dd42eb..e575a25e 100644 --- a/public_html/includes/class/class.LSsearch.php +++ b/public_html/includes/class/class.LSsearch.php @@ -121,6 +121,13 @@ class LSsearch { */ private function loadConfig() { $this -> config = LSconfig::get("LSobjects.".$this -> LSobject.".LSsearch"); + if (is_array($this -> config['predefinedFilters'])) { + foreach(array_keys($this -> config['predefinedFilters']) as $key) { + if(!LSldap::isValidFilter($key)) { + unset($this -> config['predefinedFilters'][$key]); + } + } + } } /**