]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If a Notice insert fails, don't continue processing it
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 27 Nov 2014 13:29:50 +0000 (14:29 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 27 Nov 2014 13:29:50 +0000 (14:29 +0100)
classes/Notice.php

index 96637b8f323e8dda17c2423a4d181fbf7173a270..9328a76bb876b54b647c5a367cf1aa9161c2eb02 100644 (file)
@@ -686,6 +686,7 @@ class Notice extends Managed_DataObject
                 if (!empty($notice->id)) {
                     $notice->delete();
                 }
+                throw $e;
             }
         }