CRM-19784: Updated direct usages of the geocoding provider to use the
[civicrm-core.git] / CRM / Contact / Form / Edit / Address.php
index d7b0275ad92ea9b79414dd52201b9c371071f25d..c3da42fa62ce3ebba5f205d56a60aa44ea71f9f8 100644 (file)
@@ -153,7 +153,7 @@ class CRM_Contact_Form_Edit_Address {
 
     // CRM-11665 geocode override option
     $geoCode = FALSE;
-    if (!empty($config->geocodeMethod)) {
+    if (CRM_Utils_GeocodeProvider::getUsableClassName()) {
       $geoCode = TRUE;
       $form->addElement('checkbox',
         "address[$blockId][manual_geo_code]",