diff --git a/common.inc.php b/common.inc.php index 3d8013a..3ed1891 100644 --- a/common.inc.php +++ b/common.inc.php @@ -118,6 +118,7 @@ else $dbdbversion=$config['DBVERSION']; $dbcodeversion=@file($prependdir."db/db.code.version.txt"); +$dbcodeversion=trim($dbcodeversion[0]); if(!$dbdbversion) { @@ -129,7 +130,7 @@ if(!$dbdbversion) exit; } -if($dbcodeversion[0]!=$dbdbversion) +if($dbcodeversion!=$dbdbversion) { echo "SFIAB ERROR"; echo "

Science Fair In A Box - ERROR

"; @@ -142,7 +143,7 @@ if($dbcodeversion[0]!=$dbdbversion) echo "
"; echo "
"; echo "

Details

"; - echo "Current SFIAB codebase requires DB version: ".$dbcodeversion[0]; + echo "Current SFIAB codebase requires DB version: ".$dbcodeversion; echo "
"; echo "Current SFIAB database is detected as version: ".$dbdbversion; echo "
";