Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: mdouchin <mdouchin@3liz.com>
  • Loading branch information
nworr and mdouchin authored Jul 31, 2023
1 parent 70a280b commit e3e886d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lizmap/modules/lizmap/classes/lizmapTiler.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e3e886d

Please sign in to comment.