1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/16208] Code adjustments

PHPBB3-16208
This commit is contained in:
rxu
2020-09-19 18:15:13 +07:00
parent 242476c290
commit 856fcf7554
2 changed files with 3 additions and 4 deletions

View File

@@ -84,11 +84,10 @@ class report_pm extends \phpbb\notification\type\pm
*/
public function is_available()
{
return !empty($this->auth->acl_get($this->permission)) &&
$this->config['allow_pm_report'];
return $this->config['allow_pm_report'] &&
!empty($this->auth->acl_get($this->permission));
}
/**
* Find the users who want to receive notifications
* (copied from post_in_queue)