From f487dc83c43201a2eb2e15640fd620f62818c9f0 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sun, 1 Jan 2023 12:56:34 +1100 Subject: [PATCH] removing DB opens/closes 2 --- front/php/templates/graph.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/front/php/templates/graph.php b/front/php/templates/graph.php index 32388707..a273e26f 100755 --- a/front/php/templates/graph.php +++ b/front/php/templates/graph.php @@ -2,6 +2,8 @@ require 'php/server/db.php'; +global $db; + $Pia_Graph_Device_Time = array(); $Pia_Graph_Device_All = array(); $Pia_Graph_Device_Online = array();