Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Frèrejean committed Aug 24, 2010
1 parent f196763 commit 272862d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions root/includes/hooks/hook_subject_prefix.php
Expand Up @@ -124,6 +124,12 @@ static private function add_to_index()
$last_post_ids[$row] = substr(strrchr($data['U_LAST_POST'], 'p'), 1);
}

// Nothing to see here please walk on and mind your own business.
if (empty($last_post_ids))
{
return;
}

// Get the prefixes
$sql = 'SELECT topic_last_post_id, subject_prefix_id
FROM ' . TOPICS_TABLE . '
Expand Down

0 comments on commit 272862d

Please sign in to comment.