Commit e12fbb18 authored by noplanman's avatar noplanman Committed by David Morley
Browse files

Fix wrong variable name and correct RedBeans fix. (#123)

parent e2569226
...@@ -211,7 +211,7 @@ foreach ($pods as $pod) { ...@@ -211,7 +211,7 @@ foreach ($pods as $pod) {
round(avg(online::INT) * 100, 2) AS online round(avg(online::INT) * 100, 2) AS online
FROM checks FROM checks
WHERE domain = ? WHERE domain = ?
', [$_domain]); ', [$domain]);
$avglatency = $checks['latency'] ?? 0; $avglatency = $checks['latency'] ?? 0;
$uptime = $checks['online'] ?? 0; $uptime = $checks['online'] ?? 0;
...@@ -291,7 +291,7 @@ foreach ($pods as $pod) { ...@@ -291,7 +291,7 @@ foreach ($pods as $pod) {
// @todo Temporary fix! https://github.com/gabordemooij/redbean/issues/547 // @todo Temporary fix! https://github.com/gabordemooij/redbean/issues/547
foreach ($p->getProperties() as $key => $value) { foreach ($p->getProperties() as $key => $value) {
$pod[$key] = $value; $p[$key] = $value;
} }
R::store($p); R::store($p);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment