Skip to content

Commit

Permalink
WEB: Do not let compatibility browsing for non-existing version
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Mar 1, 2016
1 parent 79df401 commit 9150342
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/Models/CompatibilityModel.php
Expand Up @@ -17,6 +17,9 @@ static public function getAllData($version) {
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();
Expand Down

0 comments on commit 9150342

Please sign in to comment.