From 78d44de12d94143240dab278c4fefb3cacfd75f0 Mon Sep 17 00:00:00 2001 From: dg9vh Date: Thu, 19 May 2016 20:38:24 +0000 Subject: [PATCH] corrected version-display if older MMDVMHost-version is in use --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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().")";