diff --git a/include/functions.php b/include/functions.php index 2f4851c..20586ce 100644 --- a/include/functions.php +++ b/include/functions.php @@ -9,10 +9,10 @@ function getMMDVMHostVersion() { return getMMDVMHostFileVersion(); } else { showLapTime("getMMDVMHostVersion"); - if (!startsWith(substr($output[0],31,8),"#")) { - return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")"; + if (strlen($output[0]) > 26) { + return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion(). ", GitID #" . substr($output[0],32,7) . ")"; } else { - return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().", GitID #".substr($output[0],32,7).")"; + return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion(). ")"; } } }