summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Luc Gyger <jean-luc.gyger@vysual.ch>2015-10-27 22:54:30 +0100
committerJean-Luc Gyger <jean-luc.gyger@vysual.ch>2015-10-27 22:54:30 +0100
commit187e70938e2c18b9794b5b87116c1cb6b03901b1 (patch)
tree1a93f93e35c4cfe85f086714305c1408473cffcf
parent67f8a9c87ca327619d3469aaae4bc1b0da441628 (diff)
reset the condition when empty
-rw-r--r--framework/Data/DataGateway/TSqlCriteria.php2
1 files changed, 1 insertions, 1 deletions
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;
}