From e971a348936553024b9cf87a3d0a67e20d3dc687 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Tue, 14 Jul 2020 17:01:04 +0200 Subject: [PATCH] Fix config layers loading on sqlite engine, fixes #132 --- helpers/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/config.php b/helpers/config.php index 3fa2b34..3ad567a 100644 --- a/helpers/config.php +++ b/helpers/config.php @@ -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"]); } }