Vergleich inc/datahandlers/post.php - 1.8.29 - 1.8.34

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 515Zeile 515
		$permissions = user_permissions($uid);

// Fetch the forum this post is being made in

		$permissions = user_permissions($uid);

// Fetch the forum this post is being made in

		if(!$post['fid'])

		if(empty($post['fid']))

		{
$query = $db->simple_select('posts', 'fid', "pid = '{$post['pid']}'");
$post['fid'] = $db->fetch_field($query, 'fid');

		{
$query = $db->simple_select('posts', 'fid', "pid = '{$post['pid']}'");
$post['fid'] = $db->fetch_field($query, 'fid');

Zeile 1210Zeile 1210

while($subscribedmember = $db->fetch_array($query))
{


while($subscribedmember = $db->fetch_array($query))
{

				if($done_users[$subscribedmember['uid']])

				if(isset($done_users[$subscribedmember['uid']]))

				{
continue;
}

				{
continue;
}

Zeile 1225Zeile 1225
				    continue;
}


				    continue;
}


				if($thread['uid'] != $subscribedmember['uid'] && $forumpermissions['canonlyviewownthread'] == 1 && !is_moderator($thread['fid'], "", $subscribedmember['uid']))

				if($thread['uid'] != $subscribedmember['uid'] && $forumpermissions['canonlyviewownthreads'] == 1 && !is_moderator($thread['fid'], "", $subscribedmember['uid']))

				{
// User isn't a moderator or the author of the thread...
continue;

				{
// User isn't a moderator or the author of the thread...
continue;

Zeile 1315Zeile 1315
						'language' => $subscribedmember['language'],
'language_file' => 'messages'
);

						'language' => $subscribedmember['language'],
'language_file' => 'messages'
);

 
					// Workaround for eliminating PHP warnings in PHP 8. Ref: https://github.com/mybb/mybb/issues/4630#issuecomment-1369144163
$pm['sender']['uid'] = -1;

					send_pm($pm, -1, true);
}
}

					send_pm($pm, -1, true);
}
}

Zeile 1712Zeile 1714
				");
while($subscribedmember = $db->fetch_array($query))
{

				");
while($subscribedmember = $db->fetch_array($query))
{

					if($done_users[$subscribedmember['uid']])

					if(!empty($done_users[$subscribedmember['uid']]))

					{
continue;
}

					{
continue;
}