From 3cbfca0d2280100eaaf4c0c88bf889451e24058a Mon Sep 17 00:00:00 2001 From: Thorsten Eurich Date: Mon, 27 May 2013 22:46:15 +0200 Subject: [PATCH] - $topics needs to be initialized (undefined index error when board is empty) - missing global Signed-off-by:Thorsten Eurich --- sources/subs/MessageIndex.subs.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sources/subs/MessageIndex.subs.php b/sources/subs/MessageIndex.subs.php index 1de891a7d0..c31b0413c9 100644 --- a/sources/subs/MessageIndex.subs.php +++ b/sources/subs/MessageIndex.subs.php @@ -14,8 +14,11 @@ function messageIndexTopics($id_board, $id_member, $start, $per_page, $sort_by, $sort_column, $indexOptions) { + global $settings; + $db = database(); + $topics = array(); $topic_ids = array(); // Extra-query for the pages after the first