Unset the static $scale variable so a new scale can later be set.

This commit is contained in:
paul121 2020-10-29 13:55:22 -07:00 committed by Michael Stenta
parent 87fa04da99
commit 7aa49b68a4
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ function farm_map_set_bcscale($reset = FALSE) {
// Otherwise, reset.
bcscale($scale);
// Unset the $scale variable so that a new scale can later be set.
// Note that we can't use unset() because this is a static variable.
$scale = NULL;
return;
}