🌍
English
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:
return $nd[0] ? ($nd[0]/$nd[1]) : 0;
No sense to me. Fixed with that:
return $nd[1] ? ($nd[0]/$nd[1]) : 0;
I wonder who copied who... ;)
Regards,
Lokidor
Offline
OpenStreetMap I think ^^
Thx for reporting I notify the author
Offline