Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Checking host before addServer
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthurhall committed Dec 6, 2015
1 parent 8b42421 commit 68b9ef8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DependencyInjection/LswMemcacheExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ private function newMemcacheClient($name, array $config, ContainerBuilder $conta
$s['timeout'],
$s['retry_interval']
);
$memcache->addMethodCall('addServer', $server);
if ($s['host']) {
$memcache->addMethodCall('addServer', $server);
}
}

$memcache->addArgument($config['options']);
Expand Down

0 comments on commit 68b9ef8

Please sign in to comment.