Skip to content

Commit

Permalink
Shard()'s $shardMap should be a simple value array
Browse files Browse the repository at this point in the history
  • Loading branch information
kaecyra committed Apr 8, 2014
1 parent ba2c8e5 commit 66870ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/class.memcached.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public function Shard($key, $value, $shards) {

$shardMap = $this->shardMap();
$mapSize = count($shardMap);
$shardMap = array_values($shardMap);

// Calculate automatic shard count
if (!is_numeric($shards)) {
Expand Down

0 comments on commit 66870ab

Please sign in to comment.