* fix a bug: allow 0 for search value.

This commit is contained in:
xia0ta0
2013-10-11 13:08:45 +08:00
parent defd4ec5f5
commit fbc8d27bae
+1 -1
View File
@@ -63,7 +63,7 @@ class searchModel extends model
$valueName = "value$i";
/* Skip empty values. */
if($this->post->$valueName == false) continue;
if($this->post->$valueName === false or $this->post->$valueName === '') continue;
if($this->post->$valueName == 'null') $this->post->$valueName = ''; // Null is special, stands to empty.
if($this->post->$valueName == 'ZERO') $this->post->$valueName = 0; // ZERO is special, stands to 0.