mirror of
https://github.com/friendica/friendica
synced 2024-12-23 10:40:16 +00:00
Avoiding some error messages
This commit is contained in:
parent
8939a25502
commit
68115581d0
1 changed files with 3 additions and 2 deletions
|
@ -64,8 +64,9 @@ function ref_session_write($id, $data) {
|
||||||
$default_expire = time() + 300;
|
$default_expire = time() + 300;
|
||||||
|
|
||||||
$memcache = cache::memcache();
|
$memcache = cache::memcache();
|
||||||
if (is_object($memcache)) {
|
$a = get_app();
|
||||||
$memcache->set(get_app()->get_hostname().":session:".$id, $data, MEMCACHE_COMPRESSED, $expire);
|
if (is_object($memcache) AND is_object($a)) {
|
||||||
|
$memcache->set($a->get_hostname().":session:".$id, $data, MEMCACHE_COMPRESSED, $expire);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue