Fixed problem with visualization of previous votes in poll voting page
This commit is contained in:
parent
c891f4afc4
commit
b32fafef17
@ -361,7 +361,6 @@ else
|
|||||||
|
|
||||||
|
|
||||||
// Loop on each answer
|
// Loop on each answer
|
||||||
if ($object->allow_spy) {
|
|
||||||
$sumfor = array();
|
$sumfor = array();
|
||||||
$sumagainst = array();
|
$sumagainst = array();
|
||||||
$compteur = 0;
|
$compteur = 0;
|
||||||
@ -382,10 +381,15 @@ if ($object->allow_spy) {
|
|||||||
|
|
||||||
$ensemblereponses = $obj->reponses;
|
$ensemblereponses = $obj->reponses;
|
||||||
|
|
||||||
print '<tr>'."\n";
|
|
||||||
|
|
||||||
// ligne d'un usager pré-authentifié
|
// ligne d'un usager pré-authentifié
|
||||||
$mod_ok = (! empty($nombase) && in_array($nombase, $listofvoters));
|
$mod_ok = (in_array($obj->nom, $listofvoters));
|
||||||
|
|
||||||
|
if (!$mod_ok && !$object->allow_spy) {
|
||||||
|
$compteur++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
print '<tr>'."\n";
|
||||||
|
|
||||||
// Name
|
// Name
|
||||||
print '<td class="nom">'.htmlentities($obj->nom).'</td>'."\n";
|
print '<td class="nom">'.htmlentities($obj->nom).'</td>'."\n";
|
||||||
@ -521,7 +525,6 @@ if ($object->allow_spy) {
|
|||||||
$compteur++;
|
$compteur++;
|
||||||
print '</tr>'."\n";
|
print '</tr>'."\n";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Add line to add new record
|
// Add line to add new record
|
||||||
if ($ligneamodifier < 0 && (! isset($_SESSION['nom'])))
|
if ($ligneamodifier < 0 && (! isset($_SESSION['nom'])))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user