diff options
author | fox <[email protected]> | 2021-12-03 07:25:06 +0300 |
---|---|---|
committer | fox <[email protected]> | 2021-12-03 07:25:06 +0300 |
commit | 6a70f5e92cd5c4d8119759f70ab00bae073bc245 (patch) | |
tree | 79d5bfd07276fcf9fdee60b86f0e87a5d407f4df /classes/config.php | |
parent | 78e82b6043999f1acba72105eef4497e19cd3b9e (diff) | |
parent | 0269c7ce3260a077074feeda4e0f7183b6563dea (diff) |
Merge pull request 'Prevent "Undefined index: version" events for git version with open_basedir after 9dabfbfa11' (#57) from ltGuillaume/tt-rss:master into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/57
Diffstat (limited to 'classes/config.php')
-rw-r--r-- | classes/config.php | 2 |
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); |