summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/version.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/version.php b/include/version.php
index 391af88cb..3169ff222 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);