Skip to content

Commit

Permalink
! This still supports 5.3, SO I fixed the error doing 8 testing :O
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuds committed Dec 18, 2020
1 parent beed435 commit 755ef3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/controllers/PersonalMessage.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1859,7 +1859,8 @@ public function action_report()
global $txt, $context, $user_info, $language, $modSettings;

// Check that this feature is even enabled!
if (empty($modSettings['enableReportPM']) || empty($this->_req->getPost('pmsg', 'intval', $this->_req->getQuery('pmsg', 'intval', 0))))
$pmsg_check = $this->_req->getPost('pmsg', 'intval', $this->_req->getQuery('pmsg', 'intval', 0));
if (empty($modSettings['enableReportPM']) || empty($pmsg_check))
{
throw new Elk_Exception('no_access', false);
}
Expand Down

0 comments on commit 755ef3d

Please sign in to comment.