minor fix

This commit is contained in:
kremsy 2014-01-19 00:15:50 +01:00 committed by Steffen Schröder
parent 7b17f51606
commit 9654b26f2b

View File

@ -301,7 +301,7 @@ class MapManager implements CallbackListener {
$this->saveMap($map);
$mapsDirectory = $this->maniaControl->server->getMapsDirectory();
if($this->maniaControl->server->checkAccess($mapsDirectory)) {
if(is_readable($mapsDirectory . $map->fileName)) {
$mapFetcher = new \GBXChallMapFetcher(true);
try {
$mapFetcher->processFile($mapsDirectory . $map->fileName);