fix

parent e7652372
......@@ -434,7 +434,7 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter
public function beforeValidate()
{
if($this->status == 0)
if($this->status === 0)
{
$this->status = static::STATUS_BLOCKED;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment