got two lines reversed

darcs-hash:20080827211940-84dde-d5b404023a2fb6b74b6255dd91910c9ec7df3cc6.gz
This commit is contained in:
Evan Prodromou 2008-08-27 17:19:40 -04:00
parent 35ed6f473c
commit cd5dc3246e

View File

@ -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;