mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正两处warn
This commit is contained in:
@@ -483,9 +483,9 @@ class Mongo extends Driver
|
|||||||
}
|
}
|
||||||
$this->model = $options['model'];
|
$this->model = $options['model'];
|
||||||
$this->queryTimes++;
|
$this->queryTimes++;
|
||||||
$query = $this->parseWhere($options['where']);
|
$query = $this->parseWhere(!empty($options['where'])?$options['where']:'');
|
||||||
$fields = $this->parseField($options['field']);
|
$fields = $this->parseField(!empty($options['field'])?$options['field']:'');
|
||||||
if ($this->config['debug']) {
|
if (!empty($this->config['debug'])) {
|
||||||
$this->queryStr = $this->_dbName . '.' . $this->_collectionName . '.findOne(';
|
$this->queryStr = $this->_dbName . '.' . $this->_collectionName . '.findOne(';
|
||||||
$this->queryStr .= $query ? json_encode($query) : '{}';
|
$this->queryStr .= $query ? json_encode($query) : '{}';
|
||||||
$this->queryStr .= $fields ? ',' . json_encode($fields) : '';
|
$this->queryStr .= $fields ? ',' . json_encode($fields) : '';
|
||||||
|
|||||||
Reference in New Issue
Block a user