Index: index.php =================================================================== --- index.php (revision 9887) +++ index.php (working copy) @@ -2214,6 +2214,7 @@ function submitfailed($errormsg='') { + global $debug; global $thissurvey, $clang; global $thistpl, $subquery, $surveyid, $connect;