LSldapObject :: validateAttrData() : Fixed error in search filter specified by user
authorBenjamin Renard <brenard@easter-eggs.com>
Wed, 24 Nov 2010 17:57:43 +0000 (18:57 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Wed, 24 Nov 2010 17:57:43 +0000 (18:57 +0100)
public_html/includes/class/class.LSldapObject.php

index a6d8445..551f3c6 100644 (file)
@@ -444,7 +444,7 @@ class LSldapObject {
           if((isset($test['filter'])||isset($test['basedn']))&&(isset($test['result']))) {
             $sparams=(isset($test['scope']))?array('scope' => $test['scope']):array();
             $this -> other_values['val']=$val;
-            $sfilter_user=(isset($test['basedn']))?getFData($test['filter'],$this,'getValue'):NULL;
+            $sfilter_user=(isset($test['filter']))?getFData($test['filter'],$this,'getValue'):NULL;
             if(isset($test['object_type'])) {
               $test_obj = new $test['object_type']();
               $sfilter=$test_obj->getObjectFilter();