Vergleich inc/functions_online.php - 1.8.3 - 1.8.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 578Zeile 578
	$unviewableforums = get_unviewable_forums();
$inactiveforums = get_inactive_forums();
$fidnot = '';

	$unviewableforums = get_unviewable_forums();
$inactiveforums = get_inactive_forums();
$fidnot = '';

 
	$unviewablefids = $inactivefids = array();

	if($unviewableforums)
{
$fidnot = " AND fid NOT IN ($unviewableforums)";

	if($unviewableforums)
{
$fidnot = " AND fid NOT IN ($unviewableforums)";

 
		$unviewablefids = explode(',', $unviewableforums);

	}
if($inactiveforums)
{
$fidnot .= " AND fid NOT IN ($inactiveforums)";

	}
if($inactiveforums)
{
$fidnot .= " AND fid NOT IN ($inactiveforums)";

 
		$inactivefids = explode(',', $inactiveforums);

	}

// Fetch any users

	}

// Fetch any users

Zeile 686Zeile 689
	// Fetch any forums
if(!is_array($forums) && count($fid_list) > 0)
{

	// Fetch any forums
if(!is_array($forums) && count($fid_list) > 0)
{

		if($fidnot)
{
$fidnot = explode(',', str_replace('\'', '', (string)$unviewableforums).$inactiveforums);
}

		$fidnot = array_merge($unviewablefids, $inactivefids);





foreach($forum_cache as $fid => $forum)
{


foreach($forum_cache as $fid => $forum)
{

			if(in_array($fid, $fid_list) && (!$fidnot || is_array($fidnot) && !in_array($fid, $fidnot)))

			if(in_array($fid, $fid_list) && !in_array($fid, $fidnot))

			{
$forums[$fid] = $forum['name'];
$forums_linkto[$fid] = $forum['linkto'];

			{
$forums[$fid] = $forum['name'];
$forums_linkto[$fid] = $forum['linkto'];