Sfoglia il codice sorgente

get_version: add missing substr

Andrew Dolgov 8 anni fa
parent
commit
583d5b9a98
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      include/version.php

+ 1 - 1
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);