aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-28 11:35:15 +0000
committerMario <mario@mariovavti.com>2024-01-28 11:35:15 +0000
commite18157f818fc8de3e762e967929b117f51e00c1b (patch)
tree4f001404977ce8feb1f2ec7bcd58f292d658459d /Zotlabs/Module
parent5435d2881c0ca606bd389932224792704e326eed (diff)
downloadvolse-hubzilla-e18157f818fc8de3e762e967929b117f51e00c1b.tar.gz
volse-hubzilla-e18157f818fc8de3e762e967929b117f51e00c1b.tar.bz2
volse-hubzilla-e18157f818fc8de3e762e967929b117f51e00c1b.zip
make sure we return an array if there is no cache entry
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Sse_bs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Sse_bs.php b/Zotlabs/Module/Sse_bs.php
index 2e9904cd3..38a6e6054 100644
--- a/Zotlabs/Module/Sse_bs.php
+++ b/Zotlabs/Module/Sse_bs.php
@@ -121,7 +121,7 @@ class Sse_bs extends Controller {
$mids = [];
$str = '';
- $mids_all = unserialise(Cache::get('sse_mids_all_' . session_id()));
+ $mids_all = unserialise(Cache::get('sse_mids_all_' . session_id()) ?? '{}');
foreach($arr as $a) {
$mid_str = '\'' . dbesc(unpack_link_id($a)) . '\'';
@@ -443,7 +443,7 @@ class Sse_bs extends Controller {
$sql_extra2 = " AND CASE WHEN verb = '" . ACTIVITY_SHARE . "' THEN owner_xchan ELSE author_xchan END IN (" . self::$xchans . ") ";
$sql_extra3 = '';
- $sse_mids_all = unserialise(Cache::get('sse_mids_all_' . session_id()));
+ $sse_mids_all = unserialise(Cache::get('sse_mids_all_' . session_id()) ?? '{}');
if ($sse_mids_all) {
$sql_extra3 = " AND mid NOT IN (" . protect_sprintf(implode(',', $sse_mids_all)) . ") ";
}