If you call phone_supported_countrycode() with a country code that is actually not supported, with phone_country_info() returning false, the actual evaluation in phone_supported_countrycode() checks for NULL, and since FALSE is not NULL, returns TRUE.

CommentFileSizeAuthor
#1 phone_supported_countrycode_true-2388167-1.patch444 bytesAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Created patch to fix the issue, and check for !== FALSE instead of !== NULL