[Scummvm-cvs-logs] scummvm-web master -> 9150342a47ecafe983fe91c67b50622773828559

sev- sev at scummvm.org
Tue Mar 1 16:20:58 CET 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
9150342a47 WEB: Do not let compatibility browsing for non-existing version


Commit: 9150342a47ecafe983fe91c67b50622773828559
    https://github.com/scummvm/scummvm-web/commit/9150342a47ecafe983fe91c67b50622773828559
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-03-01T16:20:32+01:00

Commit Message:
WEB: Do not let compatibility browsing for non-existing version

Changed paths:
    include/Models/CompatibilityModel.php



diff --git a/include/Models/CompatibilityModel.php b/include/Models/CompatibilityModel.php
index 9b3249b..6c24900 100644
--- a/include/Models/CompatibilityModel.php
+++ b/include/Models/CompatibilityModel.php
@@ -17,6 +17,9 @@ abstract class CompatibilityModel extends BasicModel {
 			throw new ErrorException(self::NO_VERSION);
 		}
 		$fname = DIR_COMPAT . "/compat-{$version}.xml";
+		if (!file_exists($fname)) {
+			throw new ErrorException(self::NO_FILES);
+		}
 		$parser = new XMLParser();
 		$a = $parser->parseByFilename($fname);
 		$entries = array();






More information about the Scummvm-git-logs mailing list