From 56e6f991d246a94b046e542827c8583e169837dc Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Tue, 13 Mar 2018 18:00:22 +0100
Subject: [PATCH] FEAT #196 isRequestValid enhanced

---
 src/core/controllers/PreparedClauseController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/controllers/PreparedClauseController.php b/src/core/controllers/PreparedClauseController.php
index 7ab899f1977..691838c9482 100644
--- a/src/core/controllers/PreparedClauseController.php
+++ b/src/core/controllers/PreparedClauseController.php
@@ -229,7 +229,7 @@ class PreparedClauseController
         }
 
         try {
-            ResModel::getOnView(['select' => $aArgs['select'], 'where' => [$clause]]);
+            ResModel::getOnView(['select' => $aArgs['select'], 'where' => [$clause, '1=1']]);
         } catch (\Exception $e) {
             return false;
         }
-- 
GitLab