diff --git a/include/functions.php b/include/functions.php index d21fe4f..6d860e4 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4,7 +4,7 @@ function getMMDVMHostVersion() { // returns creation-time of MMDVMHost as version-number $filename = MMDVMHOSTPATH . "MMDVMHost"; exec($filename." -v 2>&1", $output); - if (substr($output[0],18,8) == ".ini fil") { + if (!startsWith(substr($output[0],18,8),"20")) { return getMMDVMHostFileVersion(); } else { return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")";