Skip to content
Snippets Groups Projects
Commit 47f0f555 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 4a7f9162
No related merge requests found
...@@ -86,7 +86,8 @@ class Memcache extends AbstractBase ...@@ -86,7 +86,8 @@ class Memcache extends AbstractBase
*/ */
public function read($sess_id) 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