From b66ba81c34216c6761b9f2f5b660f5a83b440600 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Mon, 18 Feb 2013 00:34:30 +0100 Subject: [PATCH] Fix address lookup. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - Remove extra arg causing parameter shift - Don't override passed in flags Signed-off-by: Raphaël Barrois --- classes/userfilter/conditions.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/classes/userfilter/conditions.inc.php b/classes/userfilter/conditions.inc.php index 0f1f95f..7ea27f4 100644 --- a/classes/userfilter/conditions.inc.php +++ b/classes/userfilter/conditions.inc.php @@ -1101,20 +1101,18 @@ class UFC_AddressComponent extends UFC_Address private $fieldtype; private $exact; - public function __construct($val, $fieldtype, $exact = true, $type = null, $flags = self::FLAG_ANY) + public function __construct($val, $fieldtype, $type = null, $flags = self::FLAG_ANY) { if (!in_array($fieldtype, self::$components)) { Platal::page()->killError('Invalid address field type: ' . $this->fieldtype); } - $flags = self::FLAG_ANY; parent::__construct($type, $flags); if (!is_array($val)) { $val = array($val); } $this->val = $val; $this->fieldtype = $fieldtype; - $this->exact = $exact; } public function buildCondition(PlFilter $uf) -- 2.1.4