From 3895a580b67a69edd1ad9897ab7a9008035e6eb7 Mon Sep 17 00:00:00 2001 From: "Ahron Greenberg (agree)" <37550360+greenbea@users.noreply.github.com> Date: Sun, 2 Jun 2024 17:46:58 -0400 Subject: [PATCH] fix backticks breaking query --- web/common/cfg_comm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/common/cfg_comm.php b/web/common/cfg_comm.php index 08678347..59611f9f 100644 --- a/web/common/cfg_comm.php +++ b/web/common/cfg_comm.php @@ -246,7 +246,7 @@ function load_panels() { require("".__DIR__."/../../config/tools/system/dashboard/settings.inc.php"); unset($_SESSION['config']['panels']); $max_order = -1; - $sql = 'select `name`, id, content, positions, `order` from ocp_dashboard'; + $sql = 'select "name", id, content, positions, "order" from ocp_dashboard'; $stm = $link->prepare($sql); if ($stm === false) { die('Failed to issue query ['.$sql.'], error message : ' . print_r($link->errorInfo(), true));