delahaye / dlh_googlemaps

Google Maps Extension für Contao
20 stars 26 forks source link

Call to a member function row() on a non-object #21

Closed leo-unglaub closed 10 years ago

leo-unglaub commented 10 years ago

Hey, in the file Googlemap.php on line 63 you simply call row(), but in some cases that does not exists and causes an fatal error.

Fatal error: Call to a member function row() on a non-object in system/modules/dlh_googlemaps/classes/Googlemap.php on line 63

Please can you check if you have data before fetching it? Thanks and greetings Leo

delahaye commented 10 years ago

I thought there'd always be a configuration ;). Will be fixed.

leo-unglaub commented 10 years ago

Thanks!

PS: I looked at the log, it looks like the customer created a Map, but after that changed the element type twice. That must caused the case that there is no config. User fault in my opinion, but it would still be nice to check if there are rows in there. :)

delahaye commented 10 years ago

Now there's no map created if no object is present.