Browse Source

fixed bug in query '0'

Piotr Labudda 8 năm trước cách đây
mục cha
commit
f5be4e9cfb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      SE/se-lib/SqlQueryWhereBuilder.php

+ 1 - 1
SE/se-lib/SqlQueryWhereBuilder.php

@@ -342,7 +342,7 @@ class SqlQueryWhereBuilder {
 		$sqlSearchWords = array();
 		if (!empty($searchWords)) {
 			foreach ($searchWords as $word) {
-				if (!empty($word)) {
+				if (!empty($word) || '0' === $word) {
 					$sqlSearchWords[] = $word;
 				}
 			}