修正一处变量错误

This commit is contained in:
huangdijia
2016-01-26 09:14:05 +08:00
parent 2c20c926a6
commit 67c8eb3580

View File

@@ -49,7 +49,7 @@ class Memcache extends SessionHandler
// 建立连接
foreach ((array) $hosts as $i => $host) {
$port = isset($ports[$i]) ? $ports[$i] : $ports[0];
false === $config['timeout'] ?
false === $this->config['timeout'] ?
$this->handler->addServer($host, $port, $this->config['persistent'], 1) :
$this->handler->addServer($host, $port, $this->config['persistent'], 1, $this->config['timeout']);
}