Explorar el Código

fixed bug in query '0'

Piotr Labudda hace 8 años
padre
commit
f5be4e9cfb
Se han modificado 1 ficheros con 1 adiciones y 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;
 				}
 			}