From 8c95956c8d67e350c2ef7519213b602243c0f3d4 Mon Sep 17 00:00:00 2001 From: Richard Fath Date: Tue, 3 Oct 2023 08:55:14 +0200 Subject: [PATCH] Do not bind same bind variable again (#42020) --- .../components/com_templates/src/Model/StylesModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/administrator/components/com_templates/src/Model/StylesModel.php b/administrator/components/com_templates/src/Model/StylesModel.php index 00bbef2cdea3c..61cf1d7379672 100644 --- a/administrator/components/com_templates/src/Model/StylesModel.php +++ b/administrator/components/com_templates/src/Model/StylesModel.php @@ -240,12 +240,12 @@ protected function getListQuery() $query->extendWhere( 'AND', [ - 'LOWER(' . $db->quoteName('a.template') . ') LIKE :template', + 'LOWER(' . $db->quoteName('a.template') . ') LIKE :templatesearch', 'LOWER(' . $db->quoteName('a.title') . ') LIKE :title', ], 'OR' ) - ->bind(':template', $search) + ->bind(':templatesearch', $search) ->bind(':title', $search); } }