Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error in ___processInput() #22

Open
theoretic opened this issue Jun 20, 2022 · 0 comments
Open

Type error in ___processInput() #22

theoretic opened this issue Jun 20, 2022 · 0 comments

Comments

@theoretic
Copy link

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))) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant