summaryrefslogtreecommitdiffstats
path: root/inc/property.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2022-09-12 14:11:34 +0200
committerSimon Rettberg2022-09-12 14:11:34 +0200
commitd81b97e84ae5b2c51c8291633361eb5c5f5551e8 (patch)
tree47a14529c73e204b1a1db5a7f57b8344dd86940c /inc/property.inc.php
parent[syslog] Minor refactor (diff)
downloadslx-admin-d81b97e84ae5b2c51c8291633361eb5c5f5551e8.tar.gz
slx-admin-d81b97e84ae5b2c51c8291633361eb5c5f5551e8.tar.xz
slx-admin-d81b97e84ae5b2c51c8291633361eb5c5f5551e8.zip
[inc/Property] Fix warning about type conversion
Diffstat (limited to 'inc/property.inc.php')
-rw-r--r--inc/property.inc.php1
1 files changed, 1 insertions, 0 deletions
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) {