Skip to content

Commit

Permalink
Dev: Null coalesce operator is not available in PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Mar 20, 2023
1 parent 6cac4f1 commit 0948d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/frontend_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function loadanswers()
$_SESSION['survey_' . $surveyid][$column] = '';
} elseif ($_SESSION['survey_' . $surveyid]['fieldmap'][$column]['type'] == '|' && !preg_match('/_filecount$/', $column)) {
$aFiles = json_decode($value);
$iSize = count($aFiles ?? []);
$iSize = count(empty($aFiles) ? [] : $aFiles);
if (!is_null($aFiles) && $iSize > 0) {
for ($i = 0; $i < $iSize; $i++) {
// Encode html entities
Expand Down

0 comments on commit 0948d39

Please sign in to comment.