mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-01-23 02:14:06 +00:00
Fix depreciated return boolean value from uasort
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
2c3148fe9e
commit
76e59902e4
1 changed files with 4 additions and 1 deletions
|
|
@ -253,7 +253,10 @@ class PollService {
|
|||
*/
|
||||
public function sortSlorts(&$slots) {
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue