s/EmptyIdException/EmptyPkeyValueException/

This commit is contained in:
Mikael Nordfeldth
2016-06-25 11:50:59 +02:00
parent d7a4098b56
commit 7978cd6d59
6 changed files with 11 additions and 8 deletions

View File

@@ -120,7 +120,7 @@ class File extends Managed_DataObject
// $args['attachment'] should always be set if action===attachment, given our routing rules
$file = File::getByID($args['attachment']);
return $file;
} catch (EmptyIdException $e) {
} catch (EmptyPkeyValueException $e) {
// ...but $args['attachment'] can also be 0...
} catch (NoResultException $e) {
// apparently this link goes to us, but is _not_ an existing attachment (File) ID?