Permalink
Browse files

Revert "Merge pull request #71 from pedroresende/array_error"

This reverts commit df441ca, reversing
changes made to 1606a2b.
  • Loading branch information...
1 parent df441ca commit 7cbe1b212a0715acbbe407a93a67bb14e71de7a7 @tedivm tedivm committed Mar 30, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Stash/Driver/Sub/Memcache.php
@@ -30,9 +30,9 @@ public function initialize($servers, array $options = array())
$memcache = new \Memcache();
foreach ($servers as $server) {
- $host = $server['server'];
- $port = isset($server['port']) ? $server['port'] : 11211;
- $weight = isset($server['weight']) ? (int)$server['weight'] : null;
+ $host = $server[0];
+ $port = isset($server[1]) ? $server[1] : 11211;
+ $weight = isset($server[2]) ? (int)$server[2] : null;
if (is_integer($weight)) {
$memcache->addServer($host, $port, true, $weight);

0 comments on commit 7cbe1b2

Please sign in to comment.