/*
+--------------------------------------------------------------------+
- | 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. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
*/
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;
}