Fix PHP type error on GIS nullable data

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-04-17 00:27:24 +02:00
parent e4a985ca0f
commit df96ee24b3
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -719,6 +719,9 @@ class GisVisualization
// Figure out the data type
$ref_data = $row[$this->settings['spatialColumn']];
if (! is_string($ref_data)) {
continue;
}
$type_pos = mb_strpos($ref_data, '(');
if ($type_pos === false) {
continue;