diff --git a/www/sites/all/modules/contrib/location/location.module b/www/sites/all/modules/contrib/location/location.module
old mode 100644
new mode 100755
index 1bc8ef6..b11be5a
--- a/www/sites/all/modules/contrib/location/location.module
+++ b/www/sites/all/modules/contrib/location/location.module
@@ -888,7 +888,19 @@ function location_load_locations($id, $key = 'vid') {
  *   Example: array('genid' => 'my_custom_1111')
  */
 function location_save_locations(&$locations, $criteria) {
-  if (isset($locations) && is_array($locations) && !empty($criteria) && is_array($criteria)) {
+  // Check locations...
+  $valid = TRUE;
+  if (isset($locations) && is_array($locations)) {
+    foreach ($locations as $location) {
+      $location = array_filter($location);
+      $valid &= !empty($location);
+    }
+  }
+  else {
+    $valid = FALSE;
+  }
+  
+  if ($valid && !empty($criteria) && is_array($criteria)) {
     foreach (array_keys($locations) as $key) {
       location_save($locations[$key], TRUE, $criteria);
     }
@@ -1130,7 +1142,13 @@ function _location_patch_locpick(&$location) {
  *   is provided, there will be no attempt to reuse lids.
  * @return The lid of the saved location, or FALSE if the location is considered "empty."
  */
-function location_save(&$location, $cow = TRUE, $criteria = array()) {
+function location_save(&$location, $cow = TRUE, $criteria = array()) { 
+  // If this is an empty location, then return FALSE.
+  $check_location = array_filter($location);
+  if (empty($check_location)) {
+    return FALSE;
+  }
+  
   // Quick settings fixup.
   if (!isset($location['location_settings'])) {
     $location['location_settings'] = array();
