From d81b97e84ae5b2c51c8291633361eb5c5f5551e8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 12 Sep 2022 14:11:34 +0200 Subject: [inc/Property] Fix warning about type conversion --- inc/property.inc.php | 1 + 1 file changed, 1 insertion(+) (limited to 'inc') diff --git a/inc/property.inc.php b/inc/property.inc.php index e17473f6..dd72c187 100644 --- a/inc/property.inc.php +++ b/inc/property.inc.php @@ -19,6 +19,7 @@ class Property public static function get(string $key, $default = false) { if (self::$cache === false) { + self::$cache = []; $NOW = time(); $res = Database::simpleQuery("SELECT name, dateline, value FROM property"); foreach ($res as $row) { -- cgit v1.2.3-55-g7522