diff --git a/lizmap/modules/lizmap/classes/lizmapTiler.class.php b/lizmap/modules/lizmap/classes/lizmapTiler.class.php index cd2c7c4ea3..e926842a8f 100644 --- a/lizmap/modules/lizmap/classes/lizmapTiler.class.php +++ b/lizmap/modules/lizmap/classes/lizmapTiler.class.php @@ -603,7 +603,7 @@ public static function getTileBbox($tileMatrixSet, $tileMatrixId, $tileRow, $til private static function normalizeProjectScales($project) { $scales = array_merge(array(), $project->getOption('mapScales')); - if (reset($scales) == 0) { + if ($scales[0] == 0) { $scales[0] = 1; trigger_error('The minimum scale cannot have a value of 0, redefined as 1.', E_USER_NOTICE); }