Skip to content

Commit

Permalink
Fixed issue Warning if upload file and there is no minimum number of …
Browse files Browse the repository at this point in the history
…files specified
  • Loading branch information
TMSWhite committed Apr 12, 2012
1 parent 234b9aa commit 5e15f00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -1247,7 +1247,7 @@ function checkUploadedFileValidity($move, $backok=null)
else
$filecount = 0;

if ($filecount < $validation['min_num_of_files'] && LimeExpressionManager::QuestionIsRelevant($fieldmap[$field]['qid']))
if (isset($validation['min_num_of_files']) && $filecount < $validation['min_num_of_files'] && LimeExpressionManager::QuestionIsRelevant($fieldmap[$field]['qid']))
{
$filenotvalidated = array();
$filenotvalidated[$field] = $clang->gT("The minimum number of files has not been uploaded.");
Expand Down

1 comment on commit 5e15f00

@TMSWhite
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ported to Yii

Please sign in to comment.