@@ -149,7 +149,7 @@ |
||
149 | 149 | */ |
150 | 150 | public function getStats() |
151 | 151 | { |
152 | - if(!ini_get('xcache.admin.enable_auth')) |
|
152 | + if (!ini_get('xcache.admin.enable_auth')) |
|
153 | 153 | { |
154 | 154 | $info = xcache_info(XC_TYPE_VAR, 0); |
155 | 155 |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public function driverConnect() |
129 | 129 | { |
130 | - $servers = (!empty($this->config[ 'memcache' ]) && is_array($this->config[ 'memcache' ]) ? $this->config[ 'memcache' ] : []); |
|
130 | + $servers = (!empty($this->config['memcache']) && is_array($this->config['memcache']) ? $this->config['memcache'] : []); |
|
131 | 131 | if (count($servers) < 1) { |
132 | 132 | $servers = [ |
133 | 133 | ['127.0.0.1', 11211], |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | |
137 | 137 | foreach ($servers as $server) { |
138 | 138 | try { |
139 | - if (!$this->instance->addServer($server[ 0 ], $server[ 1 ])) { |
|
139 | + if (!$this->instance->addServer($server[0], $server[1])) { |
|
140 | 140 | $this->fallback = true; |
141 | 141 | } |
142 | 142 | } catch (\Exception $e) { |