From e8ff36e4115f1751de848f11c4f1eb6e0a76df18 Mon Sep 17 00:00:00 2001 From: Menno Dekker Date: Mon, 7 Feb 2011 09:44:58 +0000 Subject: [PATCH] fixed #4910: Download all files for reponse in browse screen throws en error dev: shouldn't be an option anyway, the check for existing file question failed for dual scale questions git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9747 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/admin_functions.php | 5 +---- admin/browse.php | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/admin/admin_functions.php b/admin/admin_functions.php index 06a59b2e555..5b4ac5aab1c 100644 --- a/admin/admin_functions.php +++ b/admin/admin_functions.php @@ -105,10 +105,7 @@ function bHasFileUploadQuestion($surveyid) { $fieldmap = createFieldMap($surveyid); foreach ($fieldmap as $field) { - foreach ($field as $key => $value) { - if ($value == "|") - return true; - } + if (isset($field['type']) && $field['type'] === '|') return true; } } diff --git a/admin/browse.php b/admin/browse.php index b75be10f414..278bc98bf0c 100644 --- a/admin/browse.php +++ b/admin/browse.php @@ -254,8 +254,12 @@ { $browseoutput .= "".$clang->gT("You don"; } + + if (bHasFileUploadQuestion($surveyid)) + { $browseoutput .= "" ."".$clang->gT("Download files for this entry")."\n"; + } //Export this response $browseoutput .= "