Skip to content
Snippets Groups Projects
Commit 49c3febd authored by Cloud8's avatar Cloud8 Committed by Demian Katz
Browse files

Do not return null from MemCache session handler.

- Improves PHP 7 compatibility.
parent 0940e105
No related merge requests found
......@@ -86,7 +86,8 @@ class Memcache extends AbstractBase
*/
public function read($sess_id)
{
return $this->getConnection()->get("vufind_sessions/{$sess_id}");
$value = $this->getConnection()->get("vufind_sessions/{$sess_id}");
return empty($value) ? '' : $value;
}
/**
......
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