Skip to content

Commit

Permalink
Tradition syntax array
Browse files Browse the repository at this point in the history
  • Loading branch information
psrustik committed Jun 17, 2014
1 parent 1c54e79 commit 4ef0906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CleanTalkValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function checkValidateConfig(CModel $object)
'cleantalk',
'Application component "' . $this->apiComponentId . '" is not defined'
));
} elseif (!in_array($this->check, [self::CHECK_MESSAGE, self::CHECK_USER])) {
} elseif (!in_array($this->check, array(self::CHECK_MESSAGE, self::CHECK_USER))) {
throw new DomainException(Yii::t(
'cleantalk',
'Validation check property is not defined or invalid'
Expand Down

0 comments on commit 4ef0906

Please sign in to comment.