diff --git a/htdocs/core/actions_builddoc.inc.php b/htdocs/core/actions_builddoc.inc.php index dc91cbd0404..adbc17a4161 100644 --- a/htdocs/core/actions_builddoc.inc.php +++ b/htdocs/core/actions_builddoc.inc.php @@ -93,7 +93,7 @@ if ($action == 'builddoc' && $permissioncreate) setEventMessages($langs->trans("FileGenerated"), null); header('Location: '.$_SERVER['REQUEST_URI'].'#builddoc'); - die; + exit; } } } diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 16aa9332232..83e913f9718 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -35,9 +35,9 @@ class FormFile { private $db; - private $numoffiles; - public $error; + public $error; + public $numoffiles; public $infofiles; // Used to return informations by function getDocumentsLink diff --git a/htdocs/public/opensurvey/studs.php b/htdocs/public/opensurvey/studs.php index 6f242a00544..070c739e85c 100644 --- a/htdocs/public/opensurvey/studs.php +++ b/htdocs/public/opensurvey/studs.php @@ -248,7 +248,7 @@ if (empty($object->ref)) // For survey, id is a hex string llxFooterSurvey(); $db->close(); - exit; + exit(); } // Define format of choices @@ -287,7 +287,7 @@ if (!$canbemodified) { llxFooterSurvey(); $db->close(); - die; + exit; } print '