Skip to content
Snippets Groups Projects
Commit 21a33559 authored by Pierre.R's avatar Pierre.R
Browse files

Minor code documentation fix

parent 973593d4
No related branches found
Tags 1.0.3
No related merge requests found
......@@ -108,7 +108,9 @@ class Redis_Path_PhpRedis extends Redis_Path_AbstractHashLookup
if ($doNoneLookup && (!$ret || self::VALUE_NULL === $ret)) {
$previous = $ret;
$ret = $client->hget($this->getKey($keyPrefix, LANGUAGE_NONE), $hkey);
if (!$ret && $previous) { // Restore null placeholder
if (!$ret && $previous) {
// Restore null placeholder else we loose conversion to false
// and drupal_lookup_path() would attempt saving it once again
$ret = $previous;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment