Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 8 Years, 7 Months, 1 Week ago Mod CP SQL Errors
#10
Solved: 8 Years, 7 Months, 1 Week ago
Open modscp.php, find:
if($unviewableforums && !is_super_admin($mybb->user['uid']))
{
	$flist .= " AND fid NOT IN ({$unviewableforums})";
	$tflist .= " AND t.fid NOT IN ({$unviewableforums})";

	$unviewableforums = str_replace("'", '', $unviewableforums);
	$unviewableforums = explode(',', $unviewableforums);
}

Repace:
if($unviewableforums && !is_super_admin($mybb->user['uid']))
{
	if(is_array($unviewableforums))
	{
		$unviewableforums = str_replace("'", '', implode(',', $unviewableforums));
	}

	$flist .= " AND fid NOT IN ({$unviewableforums})";
	$tflist .= " AND t.fid NOT IN ({$unviewableforums})";

	$unviewableforums = str_replace("'", '', $unviewableforums);
	$unviewableforums = explode(',', $unviewableforums);
}
Jump to the post that solved this thread.


Messages In This Thread
Mod CP SQL Errors - by Diminished - 2012-09-03, 05:56 PM
RE: Mod CP SQL Errors - by TMGFX - 2012-09-03, 09:21 PM
RE: Mod CP SQL Errors - by Diminished - 2012-09-04, 07:20 AM
RE: Mod CP SQL Errors - by Omar G. - 2012-09-04, 07:22 AM
RE: Mod CP SQL Errors - by Diminished - 2012-09-04, 07:29 AM
RE: Mod CP SQL Errors - by Omar G. - 2012-09-06, 06:21 AM
RE: Mod CP SQL Errors - by Diminished - 2012-09-06, 12:32 PM
RE: Mod CP SQL Errors - by Omar G. - 2012-09-06, 02:46 PM
RE: Mod CP SQL Errors - by Diminished - 2012-09-06, 07:00 PM
RE: Mod CP SQL Errors - by Omar G. - 2012-09-06, 11:16 PM
RE: Mod CP SQL Errors - by NNT_ - 2012-09-07, 05:36 AM
RE: Mod CP SQL Errors - by Diminished - 2012-09-07, 07:00 AM
RE: Mod CP SQL Errors - by Omar G. - 2012-09-07, 05:38 AM
RE: Mod CP SQL Errors - by NNT_ - 2012-09-07, 06:24 AM
RE: Mod CP SQL Errors - by Omar G. - 2012-09-07, 07:30 AM
RE: Mod CP SQL Errors - by NNT_ - 2012-09-07, 08:47 AM
RE: Mod CP SQL Errors - by Diminished - 2012-09-07, 10:54 AM
RE: Mod CP SQL Errors - by Omar G. - 2012-09-07, 06:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)