MyBB Community Forums

Full Version: Report reasons ignore the "all" value.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The report reasons system allows for reasons to be used for any kind of report, even though the code doesn't seems to agree:
$reportreasons = $cache->read('reportreasons');
$reasons = $reportreasons[$report_type];
$reasonslist = '';
foreach($reasons as $reason)
{
	$reason['title'] = htmlspecialchars_uni($lang->parse($reason['title']));
	eval("\$reasonslist .= \"".$templates->get("report_reason")."\";");
}
eval("\$report_reasons = \"".$templates->get("report_reasons")."\";");
Weird, it seems to be working now. Probably the cache needed some refresh? I will test a little more.