Skip to content

Commit

Permalink
Dev: Fix two small bugs in updatedb_helper reported by Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 12, 2021
1 parent 7cd65a1 commit 7aa882d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/update/updatedb_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5198,6 +5198,7 @@ function createFieldMap450($survey): array
{
// Main query
$style = 'full';
$defaultValues = null;
$quotedGroups = Yii::app()->db->quoteTableName('{{groups}}');
$aquery = 'SELECT g.*, q.*, gls.*, qls.*, qa.attribute, qa.value'
. " FROM $quotedGroups g"
Expand Down Expand Up @@ -7467,7 +7468,7 @@ function upgradeQuestionAttributes142()
$record['value'] = implode(';', $attributevalues);
$record['attribute'] = 'exclude_all_other';
$record['qid'] = $questionid;
Yii::app()->getDb()->createCommand()->insert('{{question_attributes}}', $record)->execute();
Yii::app()->getDb()->createCommand()->insert('{{question_attributes}}', $record);
}
}
}
Expand Down

0 comments on commit 7aa882d

Please sign in to comment.