problem with dates in db error

darcs-hash:20080704071726-34904-bb327b11a8e38788c5d50b1af5e0df5a7feb9275.gz
This commit is contained in:
Evan Prodromou 2008-07-04 03:17:26 -04:00
parent a742505306
commit 4e5ccb933b

View File

@ -825,8 +825,9 @@ function common_enqueue_notice($notice) {
$qi->created = DB_DataObject_Cast::dateTime(); $qi->created = DB_DataObject_Cast::dateTime();
$result = $qi->insert(); $result = $qi->insert();
if ($result === FALSE) { if ($result === FALSE) {
common_log_db_error($qi, 'INSERT', __FILE__); $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
return; common_log(LOG_ERROR, 'DB error inserting queue item: ' . $last_error->message);
return;
} }
common_log(LOG_INFO, 'complete queueing notice ID = ' . $notice->id); common_log(LOG_INFO, 'complete queueing notice ID = ' . $notice->id);
return $result; return $result;