diff options
author | Evan Prodromou <evan@controlezvous.ca> | 2008-07-04 01:22:40 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlezvous.ca> | 2008-07-04 01:22:40 -0400 |
commit | 985ba79b4ab5e65415fd74f2cf5567154d8b511d (patch) | |
tree | 20340ad4f28e9acc4856a8432e0fe2f33ab40fc3 /lib/util.php | |
parent | 73a0271960a5e7e2bc6e040595d3071d7b689a99 (diff) |
a couple of things to make queue items work
darcs-hash:20080704052240-34904-c6458bbd6842cd8a86929bba60fb0d4408b56345.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 2 |
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; } |