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