From 4ad8b08955411e3190d0c8c7cde1a2c2e7363146 Mon Sep 17 00:00:00 2001 From: Christoph Kappestein Date: Tue, 13 Feb 2024 20:43:12 +0100 Subject: [PATCH] update population --- src/Table/Population.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Table/Population.php b/src/Table/Population.php index 84460c01..06302a1f 100644 --- a/src/Table/Population.php +++ b/src/Table/Population.php @@ -13,11 +13,11 @@ class Population extends PopulationTable { public function getCollection(?int $startIndex = null, ?int $count = null): Model\PopulationCollection { - if (empty($startIndex) || $startIndex < 0) { + if ($startIndex === null || $startIndex < 0) { $startIndex = 0; } - if (empty($count) || $count < 1 || $count > 1024) { + if ($count === null || $count < 1 || $count > 1024) { $count = 16; }