Procházet zdrojové kódy

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

Max F před 4 roky
rodič
revize
9455150fd1
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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)) {