Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2018-08-30 20:10:42 +0300
committerdartcafe <github@dartcafe.de>2018-08-30 20:10:42 +0300
commitc12d46e863af9659ec4e5dd91af7b9d1dc441509 (patch)
treec8d083794c1c8af0998b7c3d348a603c8999fb94 /templates
parentcf908fef97532872cb90f047655299168ded7ae3 (diff)
Fix participants
Diffstat (limited to 'templates')
-rw-r--r--templates/main.tmpl.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/main.tmpl.php b/templates/main.tmpl.php
index 25f6f60b..7e1a5e62 100644
--- a/templates/main.tmpl.php
+++ b/templates/main.tmpl.php
@@ -97,7 +97,11 @@
$owner = $poll->getOwner();
$expiry_style = '';
- $participated = $_['votes'];
+ if ($poll->getType() === 0) {
+ $participated = $_['participations'];
+ } else {
+ $participated = $_['participations_text'];
+ }
$participated_class = 'partic_no';
$participated_title = 'You did not vote';
$participated_count = count($participated);