Unverified Commit 76e59902 authored by Thomas Citharel's avatar Thomas Citharel
Browse files

Fix depreciated return boolean value from uasort


Signed-off-by: default avatarThomas Citharel <tcit@tcit.fr>
parent 2c3148fe
...@@ -253,7 +253,10 @@ class PollService { ...@@ -253,7 +253,10 @@ class PollService {
*/ */
public function sortSlorts(&$slots) { public function sortSlorts(&$slots) {
uasort($slots, function ($a, $b) { uasort($slots, function ($a, $b) {
return $a->title > $b->title; if ($a->title === $b->title) {
return 0;
}
return $a->title > $b->title ? 1 : -1;
}); });
return $slots; return $slots;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment