Strict type checking

This commit is contained in:
Visman 2021-12-19 19:43:48 +07:00
parent e0d30948d0
commit cad7469b88
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ class Forum extends DataModel
{
$user = $this->c->user;
return 1 == $this->post_topics
return 1 === $this->post_topics
|| (
null === $this->post_topics
&& 1 === $user->g_post_topics

View file

@ -69,7 +69,7 @@ class Topic extends DataModel
) {
return false;
} elseif (
'1' == $this->parent->post_replies
1 === $this->parent->post_replies
|| (
null === $this->parent->post_replies
&& 1 === $this->c->user->g_post_replies