From 07d2040ddc76ca610917bbf74d197b809bbfb14b Mon Sep 17 00:00:00 2001 From: markjcrane Date: Mon, 29 Dec 2025 09:52:24 -0700 Subject: [PATCH] Use the database connection from the constructor --- core/dashboard/resources/classes/dashboard.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/dashboard/resources/classes/dashboard.php b/core/dashboard/resources/classes/dashboard.php index adbd0d4389..de33ae15a1 100644 --- a/core/dashboard/resources/classes/dashboard.php +++ b/core/dashboard/resources/classes/dashboard.php @@ -337,8 +337,7 @@ class dashboard { foreach ($this->tables as $table) { $sql = "select * from v_" . $table . " "; $sql .= "where dashboard_uuid = " . $uuid . " "; - $database = new database; - $rows = $database->select($sql, $parameters ?? null, 'all'); + $rows = $this->database->select($sql, $parameters ?? null, 'all'); if (is_array($rows) && @sizeof($rows) != 0) { $x = 0; foreach ($rows as $row) {