From 187e70938e2c18b9794b5b87116c1cb6b03901b1 Mon Sep 17 00:00:00 2001 From: Jean-Luc Gyger Date: Tue, 27 Oct 2015 22:54:30 +0100 Subject: reset the condition when empty --- framework/Data/DataGateway/TSqlCriteria.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Data/DataGateway/TSqlCriteria.php b/framework/Data/DataGateway/TSqlCriteria.php index e62aeccd..aa91889e 100644 --- a/framework/Data/DataGateway/TSqlCriteria.php +++ b/framework/Data/DataGateway/TSqlCriteria.php @@ -128,7 +128,7 @@ class TSqlCriteria extends TComponent { if(empty($value)) { // reset the condition - $this->_condition = ''; + $this->_condition = null; return; } -- cgit v1.2.3