Skip to content
Snippets Groups Projects
Commit 1f7720db authored by Brandon Bergren's avatar Brandon Bergren
Browse files

Merge branch '7.x-1.x' into 7.x-2.x

parents cc880962 404c15bc
No related branches found
No related tags found
No related merge requests found
...@@ -565,7 +565,9 @@ function gmap_regenerate_markers() { ...@@ -565,7 +565,9 @@ function gmap_regenerate_markers() {
// Make sure js/ exists in the files folder. // Make sure js/ exists in the files folder.
if (file_prepare_directory($dir, FILE_CREATE_DIRECTORY)) { if (file_prepare_directory($dir, FILE_CREATE_DIRECTORY)) {
$file = file_save_data($contents, 'public://js/gmap_markers.js', FILE_EXISTS_REPLACE); $file = file_save_data($contents, 'public://js/gmap_markers.js', FILE_EXISTS_REPLACE);
variable_set('gmap_marker_file', $file->fid); if (!empty($file)) {
variable_set('gmap_marker_file', $file->fid);
}
} }
else { else {
drupal_set_message(t('GMap is unable to save the marker bundle. Markers will not work!'), 'error'); drupal_set_message(t('GMap is unable to save the marker bundle. Markers will not work!'), 'error');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment