X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FGeocodeProvider.php;h=8c8b931a2f2d641e252865539ce29442e7862ba3;hb=a65f52b63ddf8b85bbf7abb98155fb2a9bf2a693;hp=5cc66ce55cae10103d4f8615856c99c9d6028757;hpb=05328349418e23e4ac7dc2353b89a8864818ca63;p=civicrm-core.git diff --git a/CRM/Utils/GeocodeProvider.php b/CRM/Utils/GeocodeProvider.php index 5cc66ce55c..8c8b931a2f 100644 --- a/CRM/Utils/GeocodeProvider.php +++ b/CRM/Utils/GeocodeProvider.php @@ -2,9 +2,9 @@ /* +--------------------------------------------------------------------+ - | CiviCRM version 4.7 | + | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2018 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -29,7 +29,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 */ class CRM_Utils_GeocodeProvider { @@ -84,7 +84,7 @@ class CRM_Utils_GeocodeProvider { // or extend a base class. While we identify and implement a geocoding // abstraction library (rather than continue to roll our own), we settle for // this check. - if (!method_exists($provider, 'format')) { + if (!method_exists($provider, 'format') && $provider !== FALSE) { Civi::log()->error('Configured geocoder is invalid, must provide a format method', ['geocode_class' => $provider]); $provider = FALSE; }