Skip to content

Type error in ___processInput() #22

@theoretic

Description

@theoretic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions