From 8e212c42e50565bb8341c0774b18cafcde9d41d3 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Mon, 16 Apr 2012 10:01:46 +0200 Subject: [PATCH] Fixed issue #6016: Load Unfinished Survey button does not display for existing survey --- replacements.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/replacements.php b/replacements.php index be4ad29cfb5..0db6a095d86 100644 --- a/replacements.php +++ b/replacements.php @@ -327,7 +327,7 @@ function templatereplace($line, $replacements=array(), $anonymized=false, $quest if ($thissurvey['format'] == 'A') { - if ($thissurvey['tokenanswerspersistence'] != 'Y') + if ($thissurvey['tokenanswerspersistence'] != 'Y' || !tableExists('tokens_'.$surveyid)) { $_saveall = "\t\t\t" . "\n\t\t\t"; // Show Save So Far button @@ -339,7 +339,7 @@ function templatereplace($line, $replacements=array(), $anonymized=false, $quest } elseif (!isset($_SESSION['step']) || !$_SESSION['step']) { //First page, show LOAD - if ($thissurvey['tokenanswerspersistence'] != 'Y') + if ($thissurvey['tokenanswerspersistence'] != 'Y' || !tableExists('tokens_'.$surveyid)) { $_saveall = "\t\t\t"; }