Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Possible Bug & Fix in GoogleMapsAPI

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
jotango
Smarty Rookie


Joined: 20 Apr 2005
Posts: 13

PostPosted: Fri May 19, 2006 10:53 pm    Post subject: Possible Bug & Fix in GoogleMapsAPI Reply with quote

Hi,

I'm using GoogleMapsAPI Version 2.0 - April 27th, 2006.

When I run it straight out of the box using the example code I get


Notice: Undefined variable: _output in /XXX/include/GoogleMapAPI.class.php on line 936

Notice: Undefined variable: _output in /XXX/include/GoogleMapAPI.class.php on line 954

Notice: Undefined variable: _output in /XXX/include/GoogleMapAPI.class.php on line 961

On those lines you do a $_output .= something, without having set $_output first.

Adding a $_output = ""; before the foreach loops in the corresponding sections removes that problem.

Thanks for all the work on the API, it looks great
Back to top
View user's profile Send private message
jotango
Smarty Rookie


Joined: 20 Apr 2005
Posts: 13

PostPosted: Fri May 19, 2006 10:55 pm    Post subject: Oops, another bug Reply with quote

When I run the .tpl straight out of the box I get an error because of the { } brackets in the header. The JS section needs to be enclosed in {literal} to stop Smarty from breaking.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP