FieldtypeLeafletMapMarker
FieldtypeLeafletMapMarker copied to clipboard
Type error in ___processInput()
What happens: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in site/modules/FieldtypeLeafletMapMarker/InputfieldLeafletMapMarker.module:193
Which PHP version: 8.0.20
How to correct: Replace lines 193 and 194 with the following:
if( ((string) round((float)$lat, $precision)) != ((string) round((float)$this->defaultLat, $precision)) ||
((string) round((float)$lng, $precision)) != ((string) round((float)$this->defaultLng, $precision))) {