@@ -253,9 +253,9 @@ discard block |
||
253 | 253 | { |
254 | 254 | // Sort events by start time (all day events will be listed first) |
255 | 255 | uasort($day['events'], function ($a, $b) { |
256 | - if ($a['start_timestamp'] == $b['start_timestamp']) |
|
257 | - return 0; |
|
258 | - return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
256 | + if ($a['start_timestamp'] == $b['start_timestamp']) |
|
257 | + return 0; |
|
258 | + return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
259 | 259 | }); |
260 | 260 | |
261 | 261 | echo ' |
@@ -436,9 +436,9 @@ discard block |
||
436 | 436 | { |
437 | 437 | // Sort events by start time (all day events will be listed first) |
438 | 438 | uasort($day['events'], function ($a, $b) { |
439 | - if ($a['start_timestamp'] == $b['start_timestamp']) |
|
440 | - return 0; |
|
441 | - return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
439 | + if ($a['start_timestamp'] == $b['start_timestamp']) |
|
440 | + return 0; |
|
441 | + return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
442 | 442 | }); |
443 | 443 | |
444 | 444 | foreach ($day['events'] as $event) |