Index: branches/5.2.x/core/units/helpers/country_states_helper.php =================================================================== diff -u -N -r16513 -r16704 --- branches/5.2.x/core/units/helpers/country_states_helper.php (.../country_states_helper.php) (revision 16513) +++ branches/5.2.x/core/units/helpers/country_states_helper.php (.../country_states_helper.php) (revision 16704) @@ -1,6 +1,6 @@ Application->getCache($cache_key); - if (!isset($cache)) { + if ( $cache_value === false ) { $table_name = $this->Application->getUnitOption('country-state', 'TableName'); $sql = 'SELECT DISTINCT cname.IsoCode, cid.StateCountryId FROM ' . $table_name . ' cid JOIN ' . $table_name . ' cname ON cname.CountryStateId = cid.StateCountryId WHERE cid.StateCountryId IS NOT NULL'; - $cache = $this->Conn->GetCol($sql, 'StateCountryId'); + $cache_value = $this->Conn->GetCol($sql, 'StateCountryId'); + $this->Application->setCache($cache_key, $cache_value); } - return $cache; + return $cache_value; } /**