Fix: Regression with firefox

This commit is contained in:
Laurent Destailleur 2014-03-05 11:52:51 +01:00
parent 6c536d43e5
commit a3fcb5ac5a
2 changed files with 29 additions and 29 deletions

View File

@ -87,7 +87,7 @@ if (GETPOST('ajoutcomment'))
}
// 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();
@ -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
$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";

View File

@ -52,13 +52,13 @@ $nblignes=count($object->fetch_lines());
//Return to the results
if (GETPOST('retoursondage')) {
header('Location: results.php?id='.$_GET['id']);
die;
exit;
}
$nbcolonnes = substr_count($object->sujet, ',') + 1;
// 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'))
{