-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow anonymous polls #7
Conversation
6b718f3
to
ce92176
Compare
<?php for ($col = 0; $col < $c; $col++) { | ||
echo $userData['choice'][$col]; | ||
} ?> | ||
<?php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change seems unrelated here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace... will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ts
@@ -36,15 +37,19 @@ | |||
<?php } ?> | |||
</tr> | |||
|
|||
<?php foreach ($template['doodleData'] as $fullname => $userData) { ?> | |||
<?php foreach ($template['doodleData'] as $fullname => $userData) { | |||
if ($anonymous && $INFO['userinfo']['name'] != $fullname) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be a strict comparison.
@@ -9,6 +9,7 @@ | |||
global $ID; | |||
|
|||
$template = $this->template; | |||
$anonymous = $this->params['anonymous']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this needs an isset
check.
Comment on behalf of salathe at php.net: Let's close this one out. The idea of anonymous voting has never really gone over well at all. |
No description provided.