mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
fix: do_server.php SQL missing quotes on category=sites causing 500
This commit is contained in:
@@ -49,7 +49,7 @@ $siteLabels = [
|
|||||||
];
|
];
|
||||||
$sites = [];
|
$sites = [];
|
||||||
$rows = JarvisDB::query(
|
$rows = JarvisDB::query(
|
||||||
"SELECT fact_key, fact_value FROM kb_facts WHERE category=sites AND updated_at > DATE_SUB(NOW(), INTERVAL 15 MINUTE) ORDER BY fact_key"
|
"SELECT fact_key, fact_value FROM kb_facts WHERE category='sites' AND updated_at > DATE_SUB(NOW(), INTERVAL 15 MINUTE) ORDER BY fact_key"
|
||||||
);
|
);
|
||||||
foreach ($rows as $r) {
|
foreach ($rows as $r) {
|
||||||
$label = $siteLabels[$r["fact_key"]] ?? $r["fact_key"];
|
$label = $siteLabels[$r["fact_key"]] ?? $r["fact_key"];
|
||||||
|
|||||||
Reference in New Issue
Block a user