? location-931526.patch
Index: location.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/location/location.module,v
retrieving revision 1.222.2.42
diff -u -p -r1.222.2.42 location.module
--- location.module	29 Sep 2010 13:53:38 -0000	1.222.2.42
+++ location.module	4 Oct 2010 21:52:48 -0000
@@ -1490,7 +1490,7 @@ function template_preprocess_location(&$
   // Map link.
   $variables['map_link'] = '';
   if (!empty($location['map_link'])) {
-    // Do not use $location for generating the map link, since it will 
+    // Do not use $location for generating the map link, since it will
     // not contain the country if that field is hidden.
     $variables['map_link'] = location_map_link($variables['location']);
   }
@@ -1517,7 +1517,9 @@ function template_preprocess_location(&$
   }
 
   // Display either the code or the full name for the province.
-  $variables['province_print'] = variable_get('location_use_province_abbreviation', 1) ? $location['province'] : $location['province_name'];
+  if (isset($location['province']) && isset($location['province_name'])) {
+    $variables['province_print'] = variable_get('location_use_province_abbreviation', 1) ? $location['province'] : $location['province_name'];
+  }
 }
 
 /**
