diff options
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); |