aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2020-01-30 20:28:55 +0100
committerMax Kostikov <max@kostikov.co>2020-01-30 20:28:55 +0100
commit5e76318e44d682ce631aa575550ce666eff2ea79 (patch)
tree316aad31f6dce8ebce6c63ae28ff9ca4183e7331 /Zotlabs
parent8ed3971ef05be4015b65c9a5b721954c7767ba22 (diff)
downloadvolse-hubzilla-5e76318e44d682ce631aa575550ce666eff2ea79.tar.gz
volse-hubzilla-5e76318e44d682ce631aa575550ce666eff2ea79.tar.bz2
volse-hubzilla-5e76318e44d682ce631aa575550ce666eff2ea79.zip
Update System.php
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/System.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Lib/System.php b/Zotlabs/Lib/System.php
index 3f500486c..b66f66bce 100644
--- a/Zotlabs/Lib/System.php
+++ b/Zotlabs/Lib/System.php
@@ -6,11 +6,12 @@ class System {
static public function get_platform_name() {
- if(! isset($platform_name)) {
+ static $platform_name = '';
+ if(empty($platform_name)) {
if(is_array(\App::$config) && is_array(\App::$config['system']) && array_key_exists('platform_name',\App::$config['system']))
- static $platform_name = \App::$config['system']['platform_name'];
+ $platform_name = \App::$config['system']['platform_name'];
else
- static $platform_name = PLATFORM_NAME;
+ $platform_name = PLATFORM_NAME;
}
return $platform_name;
}