From dbe4cc1c36c98b026428a7a06d062a7bf66cae52 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 25 Oct 2015 14:05:58 +0100 Subject: [PATCH] next() already returns a boolean. Signed-off-by: Roland Haeder --- .../districts/class_CityDistrictsDatabaseWrapper.php | 2 +- .../city_entities/lots/class_CityLotsDatabaseWrapper.php | 2 +- .../sections/class_CitySectionsDatabaseWrapper.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/city/classes/database/frontend/city_entities/districts/class_CityDistrictsDatabaseWrapper.php b/application/city/classes/database/frontend/city_entities/districts/class_CityDistrictsDatabaseWrapper.php index fa319ff..f4dff7e 100644 --- a/application/city/classes/database/frontend/city_entities/districts/class_CityDistrictsDatabaseWrapper.php +++ b/application/city/classes/database/frontend/city_entities/districts/class_CityDistrictsDatabaseWrapper.php @@ -78,7 +78,7 @@ class CityDistrictsDatabaseWrapper extends BaseDatabaseWrapper implements CityDi $resultInstance = $this->doSelectByCriteria($searchInstance); // Check if there is one entry - $isFound = ($resultInstance->next() == 1); + $isFound = $resultInstance->next(); // Return result return $isFound; diff --git a/application/city/classes/database/frontend/city_entities/lots/class_CityLotsDatabaseWrapper.php b/application/city/classes/database/frontend/city_entities/lots/class_CityLotsDatabaseWrapper.php index a6dff78..36c803b 100644 --- a/application/city/classes/database/frontend/city_entities/lots/class_CityLotsDatabaseWrapper.php +++ b/application/city/classes/database/frontend/city_entities/lots/class_CityLotsDatabaseWrapper.php @@ -79,7 +79,7 @@ class CityLotsDatabaseWrapper extends BaseDatabaseWrapper implements CityLotsWra $resultInstance = $this->doSelectByCriteria($searchInstance); // Check if there is one entry - $isFound = ($resultInstance->next() == 1); + $isFound = $resultInstance->next(); // Return result return $isFound; diff --git a/application/city/classes/database/frontend/city_entities/sections/class_CitySectionsDatabaseWrapper.php b/application/city/classes/database/frontend/city_entities/sections/class_CitySectionsDatabaseWrapper.php index b8b57e5..0b91556 100644 --- a/application/city/classes/database/frontend/city_entities/sections/class_CitySectionsDatabaseWrapper.php +++ b/application/city/classes/database/frontend/city_entities/sections/class_CitySectionsDatabaseWrapper.php @@ -131,7 +131,7 @@ class CitySectionsDatabaseWrapper extends BaseDatabaseWrapper implements CitySec $resultInstance = $this->doSelectByCriteria($searchInstance); // Check if there is one entry - $isFound = ($resultInstance->next() == 1); + $isFound = $resultInstance->next(); // Return result return $isFound; -- 2.39.5