From e34fa00960f28ddbde2f89b3c3c782215eaff469 Mon Sep 17 00:00:00 2001
From: "http://druler.com" <podarok@ua.fm>
Date: Mon, 6 May 2013 20:38:55 +0300
Subject: [PATCH] Issue #901596 by Ambidex, Boobaa | Rob_Feature: Use libraries
 api module for storing markers.

---
 gmap_markerinfo.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gmap_markerinfo.inc b/gmap_markerinfo.inc
index e939675..a962336 100644
--- a/gmap_markerinfo.inc
+++ b/gmap_markerinfo.inc
@@ -38,11 +38,11 @@ function _gmap_get_icondata() {
   // This whole process gets cached.
 
   // Get the ini files.
+  $inis = array();
   if (is_array($markerdirs)) {
     foreach ($markerdirs as $markerdir) {
       $inifiles = file_scan_directory($markerdir, '/.*\.ini$/');
       // Parse the ini files and store by path.
-      $inis = array();
       foreach ($inifiles as $file) {
         $path = substr($file->uri, 0, -strlen($file->filename));
         if (!isset($inis[$path])) {
@@ -245,6 +245,7 @@ function _gmap_get_marker_titles() {
   // This whole process gets cached.
 
   // Get the ini files.
+  $titles = array();
   if (is_array($markerdirs)) {
     foreach ($markerdirs as $markerdir) {
       $inifiles = file_scan_directory($markerdir, '/.*\.ini$/');
@@ -266,7 +267,6 @@ function _gmap_get_marker_titles() {
       }
       unset($inifiles);
 
-      $titles = array();
       foreach ($inis as $ini => $inidata) {
         foreach ($inidata as $k => $v) {
           $titles[$k] = t($inis[$ini][$k]['name']);
-- 
GitLab