Skip to content

Commit

Permalink
Update UserProfile.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Beaten-Sect0r committed Oct 23, 2015
1 parent 51d971a commit 7d53aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/models/UserProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function rules()
return [
[['user_id'], 'required'],
[['user_id', 'gender'], 'integer'],
[['gender'], 'in', 'range'=>[self::GENDER_FEMALE, self::GENDER_MALE]],
[['gender'], 'in', 'range'=>[NULL, self::GENDER_FEMALE, self::GENDER_MALE]],
[['firstname', 'middlename', 'lastname', 'avatar_path', 'avatar_base_url'], 'string', 'max' => 255],
['locale', 'default', 'value' => Yii::$app->language],
['locale', 'in', 'range' => array_keys(Yii::$app->params['availableLocales'])],
Expand Down

0 comments on commit 7d53aa1

Please sign in to comment.