* revert code for fixing the bug #638.

This commit is contained in:
shiyangyangwork@yahoo.cn
2012-01-03 01:29:24 +00:00
parent da08fa5af8
commit 7b59e5ca7a

View File

@@ -40,7 +40,7 @@ class searchModel extends model
$valueName = "value$i";
/* Skip empty vales. */
if(($this->post->$valueName != 0 and $this->post->$valueName == false) or $this->post->$valueName == '') continue;
if($this->post->$valueName == false) continue;
if($this->post->$valueName == 'null') $this->post->$valueName = ''; // Null is special, stands to empty.
/* Set and or. */