Fix version string for unsupported installations

For unsupported installations, $version['commit'] may not be defined,
leading to a warning:

E_WARNING (2)

Undefined array key "commit"
1. classes/config.php(316): ttrss_error_handler(Undefined array key "commit", classes/config.php)
2. prefs.php(173): get_version_html()
This commit is contained in:
Chih-Hsuan Yen 2023-05-27 10:58:11 +08:00
parent 3468317bd3
commit d26309b1e5
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ class Config {
return sprintf("<span title=\"%s\n%s\n%s\">%s</span>",
date("Y-m-d H:i:s", ($version['timestamp'] ?? 0)),
$version['commit'],
$version['commit'] ?? '',
$version['branch'] ?? '',
$version['version']);
}