Index: branches/5.2.x/core/units/helpers/language_import_helper.php =================================================================== diff -u -N -r15225 -r15237 --- branches/5.2.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 15225) +++ branches/5.2.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 15237) @@ -1,6 +1,6 @@ count() ) { + // PHP 5.3 version would be: $languages->count() + if ( count($languages->children()) ) { $this->_processLanguages($languages); } @@ -806,7 +807,8 @@ /* @var $sub_node SimpleXMLElement */ if ( in_array($sub_node->getName(), $container_nodes) ) { - if ( !$sub_node->count() ) { + // PHP 5.3 version would be: !$sub_node->count() + if ( !count($sub_node->children()) ) { continue; } @@ -1062,7 +1064,8 @@ $fields_hash = array_merge($fields_hash, $other_translations[$country_state_id]); $this->Conn->doInsert($fields_hash, $this->_tables['country-state'], 'REPLACE', false); - if ( !$process_states && $country_state_node->count() ) { + // PHP 5.3 version would be: $country_state_node->count() + if ( !$process_states && count($country_state_node->children()) ) { $this->_processCountries($country_state_node, $language_id, $language_encoding, true); } }