Dont call map if URL empty.

svn: r11832
This commit is contained in:
Peter Landgren 2009-02-03 20:26:33 +00:00
parent 3fc585e4be
commit 8c2269c58e

View File

@ -61,7 +61,9 @@ class MapService():
self.url = ''
#An instance is called, we display the result
self.calc_url()
self.__display()
# Don't call the map if empty url.
if len(self.url) >0:
self.__display()
self._free()
def _get_first_place(self):