Cleanup for memcached host/port split -- apparently we use ';' on purpose, restoring. Keeping fix for the notices spewing into the log.

This commit is contained in:
Brion Vibber 2010-01-16 13:39:05 -08:00
parent faedddaa81
commit 775c63b654

View File

@ -170,8 +170,8 @@ class MemcachePlugin extends Plugin
$servers = array($this->servers); $servers = array($this->servers);
} }
foreach ($servers as $server) { foreach ($servers as $server) {
if (strpos($server, ':') !== false) { if (strpos($server, ';') !== false) {
list($host, $port) = explode(':', $server); list($host, $port) = explode(';', $server);
} else { } else {
$host = $server; $host = $server;
$port = 11211; $port = 11211;