修正mongo驱动一处Notice

修正response::redirect()一处变量
This commit is contained in:
huangdijia
2015-12-24 08:40:08 +08:00
parent c6d1d7fb32
commit d6f8767416
2 changed files with 2 additions and 2 deletions

View File

@@ -310,7 +310,7 @@ class Mongo extends Driver
$this->model = $options['model'];
$query = $this->parseWhere($options['where']);
$set = $this->parseSet($data);
if ($this->config['debug']) {
if (!empty($this->config['debug'])) {
$this->queryStr = $this->_dbName . '.' . $this->_collectionName . '.update(';
$this->queryStr .= $query ? json_encode($query) : '{}';
$this->queryStr .= ',' . json_encode($set) . ')';

View File

@@ -214,7 +214,7 @@ class Response
$http_response_code = $params;
$params = [];
}
$url = preg_match('/^(https?:|\/)/', $s) ? $url : Url::build($url, $params);
$url = preg_match('/^(https?:|\/)/', $url) ? $url : Url::build($url, $params);
header('Location: ' . $url, true, $http_response_code);
}