Commit 330d438e4717dc6d024163b5e287007535857aeb
1 parent
2f2e76cb
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
pacotes/kmlmapserver/classes/layerserver.class.php
... | ... | @@ -646,7 +646,8 @@ class LayerServer { |
646 | 646 | for($i = 0; $i < $numclasses; $i++){ |
647 | 647 | $class = $layer->getClass($i); |
648 | 648 | if($vi >= 60200){ |
649 | - $label = $classe->getLabel(0); | |
649 | + if($class->numlabels > 0) | |
650 | + $label = $class->getLabel(0); | |
650 | 651 | } |
651 | 652 | else{ |
652 | 653 | $label = $class->label; | ... | ... |