Zeile 515 | Zeile 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 1210 | Zeile 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 1225 | Zeile 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 1315 | Zeile 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 1712 | Zeile 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; }
|
Zeile 1801 | Zeile 1803 |
---|
}
// Assign any uploaded attachments with the specific posthash to the newly created post.
|
}
// Assign any uploaded attachments with the specific posthash to the newly created post.
|
if($thread['posthash'])
| if(!empty($thread['posthash']))
|
{ $thread['posthash'] = $db->escape_string($thread['posthash']); $attachmentassign = array(
| { $thread['posthash'] = $db->escape_string($thread['posthash']); $attachmentassign = array(
|
Zeile 1963 | Zeile 1965 |
---|
{ $this->post_update_data['editreason'] = $db->escape_string(trim($post['editreason'])); }
|
{ $this->post_update_data['editreason'] = $db->escape_string(trim($post['editreason'])); }
|
elseif($post['editreason'] == '')
| elseif(empty($post['editreason']))
|
{ $this->post_update_data['editreason'] = ''; }
| { $this->post_update_data['editreason'] = ''; }
|