From: Chris Fulljames Date: Fri, 29 May 2026 18:43:21 +0000 (-0400) Subject: Fix issue with numeric options X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=d2485cc46248f2e1c94bfe1e764dd6012362983a;p=poll.git Fix issue with numeric options --- diff --git a/index.php b/index.php index a2e94ba..5642e00 100644 --- a/index.php +++ b/index.php @@ -53,7 +53,7 @@ function get_results($qid) $results[$opt['name']] = $qq['SUM(points)'] ?? 0; } asort($results); - return array_reverse($results); + return array_reverse($results, $preserve_keys=true); } function get_num_responses($qid)