Vergleich inc/functions_modcp.php - 1.8.3 - 1.8.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 144Zeile 144
{
global $db, $lang, $forum, $mybb, $post, $thread;


{
global $db, $lang, $forum, $mybb, $post, $thread;


	$query = $db->query("
SELECT DISTINCT u.username, u.email, u.receivepms, u.uid
FROM ".TABLE_PREFIX."moderators m
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=m.id)
WHERE m.fid IN (".$forum['parentlist'].") AND m.isgroup = '0'
");




	$nummods = false;
if(!empty($forum['parentlist']))
{
$query = $db->query("
SELECT DISTINCT u.username, u.email, u.receivepms, u.uid
FROM ".TABLE_PREFIX."moderators m
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=m.id)
WHERE m.fid IN (".$forum['parentlist'].") AND m.isgroup = '0'
");





	$nummods = $db->num_rows($query);


		$nummods = $db->num_rows($query);
}


if(!$nummods)
{


if(!$nummods)
{

Zeile 249Zeile 253
		'reports' => 1,
'dateline' => TIME_NOW,
'lastreport' => TIME_NOW,

		'reports' => 1,
'dateline' => TIME_NOW,
'lastreport' => TIME_NOW,

		'reporters' => $db->escape_string(serialize(array($report['uid'])))

		'reporters' => $db->escape_string(my_serialize(array($report['uid'])))

	);

if($mybb->settings['reportmethod'] == "email" || $mybb->settings['reportmethod'] == "pms")

	);

if($mybb->settings['reportmethod'] == "email" || $mybb->settings['reportmethod'] == "pms")

Zeile 276Zeile 280
	$update_array = array(
'reports' => ++$report['reports'],
'lastreport' => TIME_NOW,

	$update_array = array(
'reports' => ++$report['reports'],
'lastreport' => TIME_NOW,

		'reporters' => $db->escape_string(serialize($report['reporters']))

		'reporters' => $db->escape_string(my_serialize($report['reporters']))

	);

$db->update_query("reportedcontent", $update_array, "rid = '{$report['rid']}'");

	);

$db->update_query("reportedcontent", $update_array, "rid = '{$report['rid']}'");