summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 03d549334..8e8860b41 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -820,9 +820,11 @@ function common_broadcast_notice($notice, $remote=false) {
function common_enqueue_notice($notice) {
$qi = new Queue_item();
+ $qi->query('BEGIN');
$qi->notice_id = $notice->id;
$qi->created = DB_DataObject_Cast::dateTime();
$result = $qi->insert();
+ $qi->query('COMMIT');
return $result;
}