Strict type checking
This commit is contained in:
parent
e0d30948d0
commit
cad7469b88
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue