From: Andrew Dolgov Date: Mon, 28 Mar 2016 10:26:09 +0000 (+0300) Subject: get_version: add missing substr X-Git-Tag: 16.8~40 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=583d5b9a9838c411473e0e41c721710097914436;p=tt-rss.git get_version: add missing substr --- diff --git a/include/version.php b/include/version.php index 391af88c..3169ff22 100644 --- a/include/version.php +++ b/include/version.php @@ -23,7 +23,7 @@ return VERSION_STATIC . " ($suffix)"; } else { - $suffix = trim($head, 0, 7); + $suffix = substr(trim($head), 0, 7); $timestamp = filemtime("$root_dir/.git/HEAD"); define("GIT_VERSION_HEAD", $suffix);