If a Notice insert fails, don't continue processing it

This commit is contained in:
Mikael Nordfeldth 2014-11-27 14:29:50 +01:00
parent e0d0a59706
commit 411ce0629c

View File

@ -686,6 +686,7 @@ class Notice extends Managed_DataObject
if (!empty($notice->id)) { if (!empty($notice->id)) {
$notice->delete(); $notice->delete();
} }
throw $e;
} }
} }