Announcement

  •  » Extensions
  •  » OpenStreetMap or RV Maps&Earth - Similar warning when syncing

#1 2013-09-25 18:25:24

lokidor
Member
2013-09-25
1

OpenStreetMap or RV Maps&Earth - Similar warning when syncing

Hi,

I got a php warning when syncing my gallery with OpenStreetMap (0.6):
Warning: Division by zero in /var/lib/piwigo/web/plugins/piwigo-openstreetmap/include/functions_metadata.php on line 30

Similar warning with RV Maps&Earth (2.5.c):
Warning: Division by zero in /var/lib/piwigo/web/plugins/rv_gmaps/include/functions_metadata.php on line 5

The bug is reproducible with all my pictures taken near Greenwich Meridian where longitude is 0°.

Same code at this line for both plugins:

Code:

return $nd[0] ? ($nd[0]/$nd[1]) : 0;

No sense to me. Fixed with that:

Code:

return $nd[1] ? ($nd[0]/$nd[1]) : 0;

I wonder who copied who... ;)

Regards,

Lokidor

Offline

 

#2 2013-09-25 18:43:28

flop25
Piwigo Team
2006-07-06
7037

Re: OpenStreetMap or RV Maps&Earth - Similar warning when syncing

OpenStreetMap  I think ^^

Thx for reporting I notify the author


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 
  •  » Extensions
  •  » OpenStreetMap or RV Maps&Earth - Similar warning when syncing

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact