Minor - format code, fixing PHP warnings.

1.9.x
Julio Montoya 12 years ago
parent 042e97dad5
commit 8c5d5c38c5
  1. 4
      main/forum/index.php
  2. 2
      main/forum/viewthread_threaded.inc.php

@ -284,7 +284,7 @@ if (is_array($forumCategories)) {
}
// Note: This can be speeded up if we transform the $forum_list to an array that uses the forum_category as the key.
if ($forum['forum_category'] == $forumCategory['cat_id']) {
if (isset($forum['forum_category']) && $forum['forum_category'] == $forumCategory['cat_id']) {
$show_forum = false;
// SHOULD WE SHOW THIS PARTICULAR FORUM
@ -323,7 +323,7 @@ if (is_array($forumCategories)) {
{
$td_width = $image_size['width'];
}
$forum_image = "<img src=\"$image_path\" $img_attributes>";
$forum_image = "<img src=\"$image_path\" $img_attributes>";
} else {
$forum_image = '';
$td_width = 20;

@ -68,7 +68,7 @@ foreach ($rows as $post) {
$post_image=Display::return_icon('forumpost.gif');
}
$thread_structure.= $post_image;
if ($_GET['post']==$post['post_id'] OR ($counter==1 AND !isset($_GET['post']))) {
if (isset($_GET['post']) && $_GET['post']==$post['post_id'] OR ($counter==1 AND !isset($_GET['post']))) {
$thread_structure.='<strong>'.prepare4display($post['post_title']).'</strong></div>';
$prev_next_array[]=$post['post_id'];
} else {

Loading…
Cancel
Save