FieldtypeLeafletMapMarker icon indicating copy to clipboard operation
FieldtypeLeafletMapMarker copied to clipboard

Type error in ___processInput()

Open theoretic opened this issue 2 years ago • 0 comments

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))) {

theoretic avatar Jun 20 '22 09:06 theoretic