Quick fix for pro

This commit is contained in:
Duncan Sommerville 2015-02-03 16:22:12 -05:00
parent 47f1113106
commit b5f6077c04

View file

@ -158,15 +158,7 @@ class ApiController extends Zend_Controller_Action
throw new FileDoesNotExistException("Requested file does not exist!");
}
// If we're passing in a Stored File object, it's faster
// to use getFileSize() and pass in the result
if (!$size || $size <= 0) {
$size= filesize($location);
}
if ($size <= 0) {
throw new Exception("Invalid file size returned for file at $location");
}
$fm = @fopen($location, 'rb');
if (!$fm) {