From 7eaec771b9caad8da6e29358bceafd737f908bba Mon Sep 17 00:00:00 2001 From: Robert <5459308+rowright@users.noreply.github.com> Date: Thu, 20 May 2021 20:48:33 -0700 Subject: [PATCH] Update Views.class.php Switches $form_id to :form_id in binding --- src/global/code/Views.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global/code/Views.class.php b/src/global/code/Views.class.php index 3e609cd6..4f4b5f06 100644 --- a/src/global/code/Views.class.php +++ b/src/global/code/Views.class.php @@ -908,7 +908,7 @@ public static function getFormViews($form_id, $account_id = "") $db->query(" SELECT * FROM {PREFIX}views v, {PREFIX}list_groups lg - WHERE v.form_id = $form_id AND + WHERE v.form_id = :form_id AND v.group_id = lg.group_id ORDER BY lg.list_order, v.view_order ");