diff --git a/htdocs/opensurvey/results.php b/htdocs/opensurvey/results.php index d8405c31027..7d68f54023b 100644 --- a/htdocs/opensurvey/results.php +++ b/htdocs/opensurvey/results.php @@ -37,7 +37,7 @@ if (empty($user->rights->opensurvey->read)) { // Init vars $action = GETPOST('action', 'aZ09'); -$numsondage = GETPOST("id"); +$numsondage = GETPOST("id", 'alphanohtml'); $object = new Opensurveysondage($db); $result = $object->fetch(0, $numsondage); @@ -53,8 +53,8 @@ $nblines = $object->fetch_lines(); */ // Return to the results -if (GETPOST('retoursondage')) { - header('Location: results.php?id='.(GETPOSTISSET('id_sondage') ? GETPOST('id_sondage', 'aZ09') : GETPOST('id', 'int'))); +if (GETPOST('cancel')) { + header('Location: results.php?id='.(GETPOSTISSET('id_sondage') ? GETPOST('id_sondage', 'aZ09') : GETPOST('id', 'alphanohtml'))); exit; } @@ -427,6 +427,7 @@ $title = $object->title." - ".$langs->trans('Card'); $helpurl = ''; $arrayofjs = array(); $arrayofcss = array('/opensurvey/css/style.css'); + llxHeader('', $title, $helpurl, 0, 0, 0, $arrayofjs, $arrayofcss); @@ -443,6 +444,7 @@ $toutsujet = str_replace("°", "'", $toutsujet); print '