LSsearch : Added error message on invalid filter detection in predefinedFilters
authorBenjamin Renard <brenard@easter-eggs.com>
Fri, 19 Feb 2010 13:25:07 +0000 (14:25 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Fri, 19 Feb 2010 13:25:07 +0000 (14:25 +0100)
public_html/includes/class/class.LSsearch.php

index 8f8703d..91722b4 100644 (file)
@@ -124,6 +124,7 @@ class LSsearch {
     if (is_array($this -> config['predefinedFilters'])) {
       foreach(array_keys($this -> config['predefinedFilters']) as $key) {
         if(!LSldap::isValidFilter($key)) {
+          LSerror::addErrorCode('LSsearch_01','$key');
           unset($this -> config['predefinedFilters'][$key]);
         }
       }