Skip to content

Commit

Permalink
Upgrades Yii version to 2.0.13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Watts authored and CorWatts committed Apr 9, 2018
1 parent 523d0a4 commit 0efc20d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -6,7 +6,7 @@
"prefer-stable": true,
"require": {
"php": ">=7.0",
"yiisoft/yii2": "~2.0.13",
"yiisoft/yii2": "~2.0.13.2",
"yiisoft/yii2-bootstrap": "~2.0.0",
"yiisoft/yii2-swiftmailer": "~2.0.0",
"yiisoft/yii2-redis": "~2.0.5",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion site/models/QuestionForm.php
Expand Up @@ -145,7 +145,8 @@ public function getUserBehaviorProps() {
}

public function getUserBehaviorIds() {
return array_values($this->getPrefixProps('user_behavior_id'));
// for security reasons, make double-sure we're giving back an array of integers
return array_map('intval', array_values($this->getPrefixProps('user_behavior_id')));
}

public function getAnswers($bhvrs) {
Expand Down

0 comments on commit 0efc20d

Please sign in to comment.