From 6b90bec7d034350e2320192aeb8c40a4f87478ed Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sun, 23 Feb 2014 06:20:09 +0000 Subject: [PATCH] Correct the field name in the SQL query from enabled to var_enabled. --- resources/switch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/switch.php b/resources/switch.php index 22b29718cf..27b79660d9 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -35,7 +35,7 @@ require_once "resources/require.php"; if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/vars/app_config.php")) { if (strlen($_SESSION['user_defined_variables']) == 0) { $sql = "select * from v_vars "; - $sql .= "where var_cat = 'Defaults' and enabled = 'true' "; + $sql .= "where var_cat = 'Defaults' and var_enabled = 'true' "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);