summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-27 17:19:40 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-27 17:19:40 -0400
commitcd5dc3246ee24d596e5bbcab04d8f4adfed93cb5 (patch)
tree4810e439c2b6156932aada98b76bef2fd9289f5f /lib/util.php
parent35ed6f473c842d1530645d9d6779fc5917cecd03 (diff)
got two lines reversed
darcs-hash:20080827211940-84dde-d5b404023a2fb6b74b6255dd91910c9ec7df3cc6.gz
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;