Skip to content

Commit

Permalink
Fix error if server-side topic marking is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
marc1706 committed May 24, 2012
1 parent 7fe2d48 commit 0d6b235
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions root/portal/includes/functions.php
Expand Up @@ -676,13 +676,6 @@ function get_portal_tracking_info($fetch_news)
if (sizeof($topic_ids))
{
$mark_time = array();
if ($global_announce_list && sizeof($global_announce_list))
{
if (isset($tracking_topics['f'][0]))
{
$mark_time[0] = base_convert($tracking_topics['f'][0], 36, 10) + $config['board_startdate'];
}
}

if (isset($tracking_topics['f'][$forum_id]))
{
Expand All @@ -693,14 +686,7 @@ function get_portal_tracking_info($fetch_news)

foreach ($topic_ids as $topic_id)
{
if ($global_announce_list && isset($global_announce_list[$topic_id]))
{
$last_read[$topic_id] = (isset($mark_time[0])) ? $mark_time[0] : $user_lastmark;
}
else
{
$last_read[$topic_id] = $user_lastmark;
}
$last_read[$topic_id] = $user_lastmark;
}
}
}
Expand Down

0 comments on commit 0d6b235

Please sign in to comment.