Explorar o código

Fixed:变量名称错误

Zhu Jinhui %!s(int64=7) %!d(string=hai) anos
pai
achega
74e4161af0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Qii/Cache/Redis.php

+ 1 - 1
Qii/Cache/Redis.php

@@ -42,7 +42,7 @@ class Redis implements Intf
 
         $redisServer = array();
         foreach ($this->policy['servers'] AS $value) {
-            $redisServer[] = array('host' => $value['host'], 'port' => $host['port']);
+            $redisServer[] = array('host' => $value['host'], 'port' => $value['port']);
         }
         $this->redis = new \Qii\Cache\Redis\Cluster($redisServer, 128);
     }