diff options
Diffstat (limited to 'pages/api')
-rw-r--r-- | pages/api/schedule.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pages/api/schedule.php b/pages/api/schedule.php index 489e28f..2c29bcb 100644 --- a/pages/api/schedule.php +++ b/pages/api/schedule.php @@ -52,14 +52,14 @@ if (isset($raindrops[date('Y-m-d', time() + 86400)]) || isset($cloudburst[date(' if (isset($rd[$x])) { $item["raindrops"] = array_map(function ($i) { return getMemberWithoutSystem($i)["display_name"] ?? getMemberWithoutSystem($i)["name"]; }, array_filter($rd[$x], function ($i) { return isset($i); })); - } else if (isset($obj["today"][$x - 1]["raindrops"])) { - $item["raindrops"] = $obj["today"][$x - 1]["raindrops"]; + } else if (isset($obj["tomorrow"][$x - 1]["raindrops"])) { + $item["raindrops"] = $obj["tomorrow"][$x - 1]["raindrops"]; } if (isset($cb[$x])) { $item["cloudburst"] = array_map(function ($i) { return getMemberWithoutSystem($i)["display_name"] ?? getMemberWithoutSystem($i)["name"]; }, array_filter($cb[$x], function ($i) { return isset($i); })); - } else if (isset($obj["today"][$x - 1]["cloudburst"])) { - $item["cloudburst"] = $obj["today"][$x - 1]["cloudburst"]; + } else if (isset($obj["tomorrow"][$x - 1]["cloudburst"])) { + $item["cloudburst"] = $obj["tomorrow"][$x - 1]["cloudburst"]; } $obj["tomorrow"][] = $item; |