diff options
author | Mario <mario@mariovavti.com> | 2022-09-26 08:31:57 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-09-26 08:31:57 +0000 |
commit | 03475bfb15637d61698e1b3350f7b98654637fc6 (patch) | |
tree | 36d3797703f2bd43c0c52f7574e92dac5a5976d8 /Zotlabs/Widget/Cover_photo.php | |
parent | bb9411e7dc3c8c306146ac66289a0a55425f6a53 (diff) | |
download | volse-hubzilla-03475bfb15637d61698e1b3350f7b98654637fc6.tar.gz volse-hubzilla-03475bfb15637d61698e1b3350f7b98654637fc6.tar.bz2 volse-hubzilla-03475bfb15637d61698e1b3350f7b98654637fc6.zip |
Ãfix regression
Diffstat (limited to 'Zotlabs/Widget/Cover_photo.php')
-rw-r--r-- | Zotlabs/Widget/Cover_photo.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Cover_photo.php b/Zotlabs/Widget/Cover_photo.php index 11d9c4715..8d42becb5 100644 --- a/Zotlabs/Widget/Cover_photo.php +++ b/Zotlabs/Widget/Cover_photo.php @@ -34,7 +34,10 @@ class Cover_photo { if(! array_key_exists('channels_visited',$_SESSION)) { $_SESSION['channels_visited'] = []; } - $_SESSION['channels_visited'][] = $channel_id; + + if (!in_array($channel_id, $_SESSION['channels_visited'])) { + $_SESSION['channels_visited'][] = $channel_id; + } $channel = channelx_by_n($channel_id); |