1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:55:56 +00:00

Prevent "Undefined index: version" events for git version with open_basedir after 9dabfbfa11

This commit is contained in:
ltGuillaume
2021-12-02 18:55:08 +01:00
parent 5df8dacf9f
commit 0269c7ce32

View File

@@ -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);