mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修复 implode 函数使用,调换参数,旧的方式在 7.4 后将废除,感谢 @chinayin 的反馈。
This commit is contained in:
@@ -386,7 +386,7 @@ abstract class Builder
|
|||||||
$array[] = $key . ' ' . $exp . ' ' . $this->parseValue($item, $field);
|
$array[] = $key . ' ' . $exp . ' ' . $this->parseValue($item, $field);
|
||||||
}
|
}
|
||||||
$logic = isset($val[2]) ? $val[2] : 'AND';
|
$logic = isset($val[2]) ? $val[2] : 'AND';
|
||||||
$whereStr .= '(' . implode($array, ' ' . strtoupper($logic) . ' ') . ')';
|
$whereStr .= '(' . implode(' ' . strtoupper($logic) . ' ', $array) . ')';
|
||||||
} else {
|
} else {
|
||||||
$whereStr .= $key . ' ' . $exp . ' ' . $this->parseValue($value, $field);
|
$whereStr .= $key . ' ' . $exp . ' ' . $this->parseValue($value, $field);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user