[VBIV-8879] Scopeproblems in includes/modfunctions.php > nEwZ - sCRiPTz-TEAM.iNFO

Canal Rss Canal Rss
Canal Atom Canal Atom 

[VBIV-8879] Scopeproblems in includes/modfunctions.php

Category: vBulletin - vBulletin Bugs
Viewed: 9 times
Printerfriendly version version of Microsoft Word HTML version

function print_moderator_forum_chooser($name = 'forumid', $selectedid = -1, $topname = NULL, $title = NULL, $displaytop = true, $multiple = false, $displayselectforum = false, $permcheck = '')
{
	if ($title === NULL)
	{
		$title = $vbphrase['parent_forum'];
	}

	$select_options = fetch_moderator_forum_options($topname, $displaytop, $displayselectforum, $permcheck);

$vbphrase is not global.

fix: add global $vbphrase

Next Problem line 62:

$select_options = array();

	if ($displayselectforum)
	{
		$selectoptions[0] = $vbphrase['select_forum'];
		$selectedid = 0;
	}

	if ($displaytop)
	{
		$select_options['-1'] = ($topname === NULL ? $vbphrase['no_one'] : $topname);

you use $select_options & $selectoptions

Mon, 06 September 2010