Skip to content

Commit

Permalink
Dev Correctly handle the case of no files having been uploaded; other…
Browse files Browse the repository at this point in the history
…wise, an error results (#1851)
  • Loading branch information
mrpg committed Apr 21, 2021
1 parent fe60463 commit 0a41357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/expressions/em_manager_helper.php
Expand Up @@ -8430,7 +8430,7 @@ public static function ProcessCurrentResponses()
if (!preg_match('/_filecount$/', $sq)) {
$json = $value;
$aFiles = json_decode($json);
$iSize = @count($aFiles);
$iSize = (is_null($aFiles)) ? 0 : @count($aFiles);
// if the files have not been saved already,
// move the files from tmp to the files folder

Expand Down

0 comments on commit 0a41357

Please sign in to comment.