Skip to content

Commit

Permalink
Fixes PHP warning of undefined array key X in `inc/datahandlers/post.…
Browse files Browse the repository at this point in the history
…php` (L1213) and a typo in `inc/datahandlers/post.php` (L1228).
  • Loading branch information
yuliu committed Jan 3, 2023
1 parent 0a81a58 commit b153eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/datahandlers/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ function insert_post()

while($subscribedmember = $db->fetch_array($query))
{
if($done_users[$subscribedmember['uid']])
if(isset($done_users[$subscribedmember['uid']]))
{
continue;
}
Expand All @@ -1225,7 +1225,7 @@ function insert_post()
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;
Expand Down

0 comments on commit b153eb7

Please sign in to comment.