Skip to content

Commit

Permalink
Fixed issue #05283: data entry screen throws error when no files have…
Browse files Browse the repository at this point in the history
… been uploaded

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@10290 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
TMSWhite committed Jun 18, 2011
1 parent be9e6dc commit 02cb1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/dataentry.php
Expand Up @@ -997,7 +997,7 @@
break;
case "|": //FILE UPLOAD
$dataentryoutput .= "<table>\n";
if ($fname['aid']!=='filecount')
if ($fname['aid']!=='filecount' && isset($idrow[$fname['fieldname'] . '_filecount']) && ($idrow[$fname['fieldname'] . '_filecount'] > 0))
{//file metadata
$metadata = json_decode($idrow[$fname['fieldname']], true);
$qAttributes = getQuestionAttributes($fname['qid']);
Expand Down

0 comments on commit 02cb1f0

Please sign in to comment.