From 61e7b33450494f6beb015793ddb8bcb31259da42 Mon Sep 17 00:00:00 2001 From: guvra Date: Tue, 5 Mar 2024 10:27:20 +0100 Subject: [PATCH] Don't apply where condition when it is an empty string --- src/Dumper/Config/Table/TableConfig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dumper/Config/Table/TableConfig.php b/src/Dumper/Config/Table/TableConfig.php index f9302081..8e77a99e 100644 --- a/src/Dumper/Config/Table/TableConfig.php +++ b/src/Dumper/Config/Table/TableConfig.php @@ -156,8 +156,8 @@ private function prepareFilters(array $tableData): void } // New way of declaring table filters (`where` parameter) - if (isset($tableData['where'])) { - $whereCondition = (string) $tableData['where']; + $whereCondition = (string) ($tableData['where'] ?? ''); + if ($whereCondition !== '') { $this->whereExprValidator->validate($whereCondition); $this->where = $whereCondition; }