Prechádzať zdrojové kódy

Merge branch 'master' of https://github.com/karma-solutions/karmafw

Max F 4 rokov pred
rodič
commit
9455150fd1
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      src/Database/Sql/SqlTools.php

+ 4 - 1
src/Database/Sql/SqlTools.php

@@ -134,7 +134,10 @@ class SqlTools
         
         if (! empty($where)) {
             foreach ($where as $key => $value) {
-                if (is_null($value)) {
+                if (is_numeric($key)) {
+                    $where_sql[] = (string) $value;
+                
+                } else if (is_null($value)) {
                     $where_sql[] = $key . ' is null';
 
                 }else if (is_bool($value) || is_int($value)) {