Fix: Regression with firefox
This commit is contained in:
parent
6c536d43e5
commit
a3fcb5ac5a
@ -87,7 +87,7 @@ if (GETPOST('ajoutcomment'))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add vote
|
// Add vote
|
||||||
if (isset($_POST["boutonp"]))
|
if (GETPOST("boutonp") || GETPOST("boutonp.x") || GETPOST("boutonp_x")) // boutonp for chrom, boutonp_x for firefox
|
||||||
{
|
{
|
||||||
if (!$canbemodified) accessforbidden();
|
if (!$canbemodified) accessforbidden();
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ if (isset($_POST["boutonp"]))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$nom=substr($_POST["nom"],0,64);
|
$nom=substr(GETPOST("nom"),0,64);
|
||||||
|
|
||||||
// Check if vote already exists
|
// Check if vote already exists
|
||||||
$sql = 'SELECT id_users, nom FROM '.MAIN_DB_PREFIX."opensurvey_user_studs WHERE id_sondage='".$db->escape($numsondage)."' AND nom = '".$db->escape($nom)."' ORDER BY id_users";
|
$sql = 'SELECT id_users, nom FROM '.MAIN_DB_PREFIX."opensurvey_user_studs WHERE id_sondage='".$db->escape($numsondage)."' AND nom = '".$db->escape($nom)."' ORDER BY id_users";
|
||||||
|
|||||||
@ -52,13 +52,13 @@ $nblignes=count($object->fetch_lines());
|
|||||||
//Return to the results
|
//Return to the results
|
||||||
if (GETPOST('retoursondage')) {
|
if (GETPOST('retoursondage')) {
|
||||||
header('Location: results.php?id='.$_GET['id']);
|
header('Location: results.php?id='.$_GET['id']);
|
||||||
die;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$nbcolonnes = substr_count($object->sujet, ',') + 1;
|
$nbcolonnes = substr_count($object->sujet, ',') + 1;
|
||||||
|
|
||||||
// Add vote
|
// Add vote
|
||||||
if (isset($_POST["boutonp"]))
|
if (GETPOST("boutonp") || GETPOST("boutonp.x") || GETPOST("boutonp_x")) // boutonp for chrom, boutonp.x for firefox
|
||||||
{
|
{
|
||||||
if (GETPOST('nom'))
|
if (GETPOST('nom'))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user