]> git.mxchange.org Git - city.git/blobdiff - application/city/classes/manager/city/class_CityManager.php
Continued a bit: (yes, very long no activity, I'm a dad now of a half-pinay)
[city.git] / application / city / classes / manager / city / class_CityManager.php
index e8bb312d4da29c1521075985191d634b858a4a76..9b8748f87a3efbb373e5a7af4f0527ab211e58a4 100644 (file)
@@ -98,7 +98,8 @@ class CityManager extends BaseManager implements ManageableCity {
                // Get region manager
                $managerInstance = ManagerFactory::createManagerByType('region');
 
-               // There should be no region created
+               // The manager instance should be valid and no region should be created
+               assert($managerInstance instanceof ManageableRegion);
                assert(!$managerInstance->ifUserHasCreatedRegion());
 
                // Create first region and get back whole result