Skip to content

Commit 35f6fee

Browse files
authored
Merge pull request #1760 from hashtopolis/1759-empty-filters
Fix statement building in DBA on empty filters
2 parents 00a12b6 + 44c980b commit 35f6fee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dba/AbstractModelFactory.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,9 @@ private function applyFilters(&$vals, $filters) {
746746
array_push($vals, $v);
747747
}
748748
}
749+
if (sizeof($parts) == 0) {
750+
return "";
751+
}
749752
return " WHERE " . implode(" AND ", $parts);
750753
}
751754

0 commit comments

Comments
 (0)