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) {