Commit e6a48ba3 authored by kiseleva.t's avatar kiseleva.t Committed by Jeremy

Issue #2771947 by kiseleva.t: Memcache works incorrect with Sasl auth

parent 3bef235d
......@@ -643,7 +643,7 @@ function dmemcache_instance() {
foreach ($memconf as $key => $value) {
$memcache->setOption($key, $value);
}
if ($sasl_username = variable_get('memcache_sasl_username', '') && $sasl_password = variable_get('memcache_sasl_password', '')) {
if (($sasl_username = variable_get('memcache_sasl_username', '')) && ($sasl_password = variable_get('memcache_sasl_password', ''))) {
$memcache->setSaslAuthData($sasl_username, $sasl_password);
}
return $memcache;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment