Explorar o código

fixed bug in query '0'

Piotr Labudda %!s(int64=8) %!d(string=hai) anos
pai
achega
f5be4e9cfb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 				}
 			}