]> git.mxchange.org Git - city.git/commitdiff
next() already returns a boolean.
authorRoland Haeder <roland@mxchange.org>
Sun, 25 Oct 2015 13:05:58 +0000 (14:05 +0100)
committerRoland Haeder <roland@mxchange.org>
Sun, 25 Oct 2015 13:05:58 +0000 (14:05 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/city/classes/database/frontend/city_entities/districts/class_CityDistrictsDatabaseWrapper.php
application/city/classes/database/frontend/city_entities/lots/class_CityLotsDatabaseWrapper.php
application/city/classes/database/frontend/city_entities/sections/class_CitySectionsDatabaseWrapper.php

index fa319ffb4b0b21d89865e0ab4de8ac559105aef4..f4dff7e5ee9cb6c28508a47113142f33d83888f8 100644 (file)
@@ -78,7 +78,7 @@ class CityDistrictsDatabaseWrapper extends BaseDatabaseWrapper implements CityDi
                $resultInstance = $this->doSelectByCriteria($searchInstance);
 
                // Check if there is one entry
                $resultInstance = $this->doSelectByCriteria($searchInstance);
 
                // Check if there is one entry
-               $isFound = ($resultInstance->next() == 1);
+               $isFound = $resultInstance->next();
 
                // Return result
                return $isFound;
 
                // Return result
                return $isFound;
index a6dff783de5f5a76bed4f82ed46de24b9f6a5989..36c803b32679e50981bd1d2e5a7e82d11fcc5555 100644 (file)
@@ -79,7 +79,7 @@ class CityLotsDatabaseWrapper extends BaseDatabaseWrapper implements CityLotsWra
                $resultInstance = $this->doSelectByCriteria($searchInstance);
 
                // Check if there is one entry
                $resultInstance = $this->doSelectByCriteria($searchInstance);
 
                // Check if there is one entry
-               $isFound = ($resultInstance->next() == 1);
+               $isFound = $resultInstance->next();
 
                // Return result
                return $isFound;
 
                // Return result
                return $isFound;
index b8b57e5a36b057968e0e8ea998d825d296191544..0b91556729ec70169b7378fbebaf5bc6cf32c370 100644 (file)
@@ -131,7 +131,7 @@ class CitySectionsDatabaseWrapper extends BaseDatabaseWrapper implements CitySec
                $resultInstance = $this->doSelectByCriteria($searchInstance);
 
                // Check if there is one entry
                $resultInstance = $this->doSelectByCriteria($searchInstance);
 
                // Check if there is one entry
-               $isFound = ($resultInstance->next() == 1);
+               $isFound = $resultInstance->next();
 
                // Return result
                return $isFound;
 
                // Return result
                return $isFound;