瀏覽代碼

Fixed where condition

朱金辉 5 月之前
父節點
當前提交
e62e694aa8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Driver/Entity/Base.php

+ 1 - 1
src/Driver/Entity/Base.php

@@ -176,7 +176,7 @@ class Base {
     final public function where($where, $args = null) {
         $this->setWhereHooker(function($w) use($where){
             if(is_array($where)) {
-                $w = array_merge($w, $condition);
+                $w = array_merge($w, $where);
                 return $w;
             }
             return $where;