Skip to content
Snippets Groups Projects
Commit cacb8d29 authored by Denis Walker's avatar Denis Walker
Browse files

Fixes election results bug - no "votes" column any more.

parent 10669f1c
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ if (!$session->loggedin) {
$role = $DB->GetAll("SELECT post FROM election_candidates GROUP BY post");
foreach ($role as $post) {
$candidate[$post['post']] = $DB->GetAll("SELECT username, manifesto_link FROM election_candidates WHERE post=? ORDER BY votes DESC", $post['post']);
$candidate[$post['post']] = $DB->GetAll("SELECT username, manifesto_link FROM election_candidates WHERE post=?", $post['post']);
$i=0;
foreach ($candidate[$post['post']] as $person) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment