From d26309b1e5dc6c78bcc4233b0089529e8820c587 Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen <645432-yan12125@users.noreply.gitlab.com> Date: Sat, 27 May 2023 10:58:11 +0800 Subject: 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() --- classes/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/config.php b/classes/config.php index afdb7b8ef..a8fc97124 100644 --- a/classes/config.php +++ b/classes/config.php @@ -313,7 +313,7 @@ class Config { return sprintf("%s", date("Y-m-d H:i:s", ($version['timestamp'] ?? 0)), - $version['commit'], + $version['commit'] ?? '', $version['branch'] ?? '', $version['version']); } -- cgit v1.2.3