summaryrefslogtreecommitdiff
path: root/classes/config.php
diff options
context:
space:
mode:
authorltGuillaume <[email protected]>2021-12-02 18:55:08 +0100
committerltGuillaume <[email protected]>2021-12-02 18:55:08 +0100
commit0269c7ce3260a077074feeda4e0f7183b6563dea (patch)
treebeff0133f4b7c47b39a94c60344e9b16acd8ac45 /classes/config.php
parent5df8dacf9fea8b2631cb674b1af77794186d7305 (diff)
Prevent "Undefined index: version" events for git version with open_basedir after 9dabfbfa11
Diffstat (limited to 'classes/config.php')
-rw-r--r--classes/config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/config.php b/classes/config.php
index 95e2dd3ac..1c65fc76f 100644
--- a/classes/config.php
+++ b/classes/config.php
@@ -309,7 +309,7 @@ class Config {
} else if (file_exists("$root_dir/version_static.txt")) {
$this->version["version"] = trim(file_get_contents("$root_dir/version_static.txt")) . " (Unsupported)";
} else if (ini_get("open_basedir")) {
- $this->version["version"] .= "UNKNOWN (Unsupported, open_basedir)";
+ $this->version["version"] = "UNKNOWN (Unsupported, open_basedir)";
} else if (is_dir("$root_dir/.git")) {
$this->version = self::get_version_from_git($root_dir);