Fix depreciated return boolean value from uasort
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
2c3148fe9e
commit
76e59902e4
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user