From: Roland Haeder Date: Sun, 25 Oct 2015 13:05:58 +0000 (+0100) Subject: next() already returns a boolean. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dbe4cc1c36c98b026428a7a06d062a7bf66cae52;p=city.git next() already returns a boolean. Signed-off-by: Roland Haeder --- 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;