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

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

parent e2569226
......@@ -211,7 +211,7 @@ foreach ($pods as $pod) {
round(avg(online::INT) * 100, 2) AS online
FROM checks
WHERE domain = ?
', [$_domain]);
', [$domain]);
$avglatency = $checks['latency'] ?? 0;
$uptime = $checks['online'] ?? 0;
......@@ -291,7 +291,7 @@ foreach ($pods as $pod) {
// @todo Temporary fix! https://github.com/gabordemooij/redbean/issues/547
foreach ($p->getProperties() as $key => $value) {
$pod[$key] = $value;
$p[$key] = $value;
}
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