Fix config layers loading on sqlite engine, fixes #132

This commit is contained in:
Bartek Fabiszewski 2020-07-14 17:01:04 +02:00
parent c3d764343c
commit e971a34893

View File

@ -308,7 +308,7 @@ class uConfig {
$query = "SELECT id, name, url, priority FROM " . self::db()->table('ol_layers');
$result = self::db()->query($query);
while ($row = $result->fetch()) {
$this->olLayers[] = new uLayer($row["id"], $row["name"], $row["url"], $row["priority"]);
$this->olLayers[] = new uLayer((int) $row["id"], $row["name"], $row["url"], (int) $row["priority"]);
}
}