Skip to content

Commit

Permalink
Fix: the block for stating an entry new or read was outside the loop (#…
Browse files Browse the repository at this point in the history
…150)

fixes #148
  • Loading branch information
auge8472 committed Jan 22, 2017
1 parent d74f44e commit 2a0d0a8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions includes/index.inc.php
Expand Up @@ -124,19 +124,6 @@

$data['subject'] = htmlspecialchars($data['subject']);
if(isset($categories[$data['category']]) && $categories[$data['category']]!='') $data['category_name']=$categories[$data['category']];

// convert formated time to a utf-8:
$data['formated_time'] = format_time($lang['time_format'],$data['timestamp']);


if($data['pid']==0) $threads[] = $data['id'];
$data_array[$data['id']] = $data;
$child_array[$data['pid']][] = $data['id'];
}
mysqli_free_result($thread_result);
}
@mysqli_free_result($result);
}
if ($data['req_user'] !== NULL and is_numeric($data['req_user'])) {
$data['is_read'] = true;
$data['new'] = false;
Expand All @@ -155,6 +142,19 @@
}
}

// convert formated time to a utf-8:
$data['formated_time'] = format_time($lang['time_format'],$data['timestamp']);


if($data['pid']==0) $threads[] = $data['id'];
$data_array[$data['id']] = $data;
$child_array[$data['pid']][] = $data['id'];
}
mysqli_free_result($thread_result);
}
@mysqli_free_result($result);
}

// latest postings:
if($settings['latest_postings']>0)
{
Expand Down

0 comments on commit 2a0d0a8

Please sign in to comment.