Incorrect Logic

This commit is contained in:
guywatson 2012-04-20 10:12:03 +10:00
parent aa67b9da2f
commit 94b491e125

View File

@ -22,7 +22,7 @@ class SubmittedFileField extends SubmittedFormField {
$link = $this->getLink();
$title = _t('SubmittedFileField.DOWNLOADFILE', 'Download File');
if(!$link) {
if($link) {
return sprintf('<a href="%s">%s</a>', $link, $title);
}