Update division page generation.
This commit is contained in:
@@ -114,20 +114,20 @@ if (isset($config["survey"])) {
|
||||
strtolower($candidate[$propertyOnCandidate]) === strtolower($groupName);
|
||||
});
|
||||
|
||||
usort($groupCandidates, function($a, $b) {
|
||||
usort($candidates, function($a, $b) {
|
||||
if ($a == $b) {
|
||||
return 0;
|
||||
}
|
||||
return (((int) $a['Rating']) < ((int) $b['Rating'])) ? 1 : -1;
|
||||
});
|
||||
|
||||
if (count($groupCandidates) > 0):
|
||||
if (count($candidates) > 0):
|
||||
?>
|
||||
|
||||
<?php
|
||||
$columnCount = 4;
|
||||
|
||||
$chunkedWardCandidates = array_chunk($groupCandidates, $columnCount);
|
||||
$chunkedWardCandidates = array_chunk($candidates, $columnCount);
|
||||
?>
|
||||
|
||||
<?php foreach($chunkedWardCandidates as $chunk): ?>
|
||||
|
||||
Reference in New Issue
Block a user