summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-05-07 13:51:31 +0200
committerRaindropsSys <contact@minteck.org>2023-05-07 13:51:31 +0200
commit761c84c0c17c04113608a20e8401270023741c7e (patch)
tree1933bd43a4134a9f41f9bae064a8a5cf2ad95af4 /pages
parent10f4e309040b3a5f8922168c288b64658a4efb8c (diff)
downloadpluralconnect-761c84c0c17c04113608a20e8401270023741c7e.tar.gz
pluralconnect-761c84c0c17c04113608a20e8401270023741c7e.tar.bz2
pluralconnect-761c84c0c17c04113608a20e8401270023741c7e.zip
Updated 2 files (automated)
Diffstat (limited to 'pages')
-rw-r--r--pages/api/schedule.php8
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;