From: Michael J. Rubinsky Date: Thu, 17 Jun 2010 05:21:22 +0000 (-0400) Subject: fix logic - we might not actually have a yahoo map layer here. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a38a0bb03d4cfe8722dafc4806fd6859ce75a8f1;p=horde.git fix logic - we might not actually have a yahoo map layer here. --- diff --git a/horde/js/hordemap/yahoo.js b/horde/js/hordemap/yahoo.js index b9d7408ba..6b164d32c 100644 --- a/horde/js/hordemap/yahoo.js +++ b/horde/js/hordemap/yahoo.js @@ -43,7 +43,8 @@ HordeMap.Geocoder.Yahoo = Class.create( this._map = mo; } } - } else { + } + if (!this._map) { this._map = new YMap(new Element('div')); } },