数组定义规范统一

This commit is contained in:
thinkphp
2013-04-01 11:03:19 +08:00
parent 668aca97c8
commit 6f5db51323
33 changed files with 87 additions and 87 deletions

View File

@@ -36,7 +36,7 @@ class Db {
* @param array $options 缓存参数
* @access public
*/
public function __construct($options=array()) {
public function __construct($options=[]) {
if(!empty($options)) {
$this->options = array_merge($this->options,$options);
}
@@ -101,7 +101,7 @@ class Db {
$queue = xcache_get('__info__');
if(!$result) {
$this->handler->execute('INSERT INTO '.$this->options['table'].' (`cachekey`,`data`,`expire`) VALUES (\'__info__\',\'\',0)');
$queue = array();
$queue = [];
}else{
$queue = unserialize($result[0]['data']);
}