Vergleich inc/functions_online.php - 1.6.0 - 1.6.2

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 498Zeile 498
	// Fetch any threads
if(!is_array($threads) && count($tid_list) > 0)
{

	// Fetch any threads
if(!is_array($threads) && count($tid_list) > 0)
{

 
		$perms = array();

		$tid_sql = implode(",", $tid_list);
$query = $db->query("
SELECT t.fid, t.tid, t.subject, t.visible, p.displaystyle AS threadprefix

		$tid_sql = implode(",", $tid_list);
$query = $db->query("
SELECT t.fid, t.tid, t.subject, t.visible, p.displaystyle AS threadprefix

Zeile 505Zeile 506
			LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid=t.prefix)
WHERE tid IN({$tid_sql}) {$fidnot} {$visible}
");

			LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid=t.prefix)
WHERE tid IN({$tid_sql}) {$fidnot} {$visible}
");

 


		while($thread = $db->fetch_array($query))
{

		while($thread = $db->fetch_array($query))
{

 
			if(!$perms[$thread['fid']])
{
$perms[$thread['fid']] = forum_permissions($thread['fid']);
}

if($perms[$thread['fid']]['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid'])
{
continue;
}


			if(is_moderator($thread['fid']) || $thread['visible'] != '0')
{
$thread_title = '';

			if(is_moderator($thread['fid']) || $thread['visible'] != '0')
{
$thread_title = '';