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, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index cea0c3992..40f9e1a1b 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1075,8 +1075,8 @@ function common_enqueue_notice($notice) {
$qi->notice_id = $notice->id;
$qi->transport = $transport;
$qi->created = $notice->created;
- if (!$result) {
$result = $qi->insert();
+ if (!$result) {
$last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
common_log(LOG_ERR, 'DB error inserting queue item: ' . $last_error->message);
return false;