From: Evan Prodromou Date: Fri, 4 Jul 2008 07:17:26 +0000 (-0400) Subject: problem with dates in db error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4e5ccb933bcbe130e1049b86e674d902f474bdc8;p=quix0rs-gnu-social.git problem with dates in db error darcs-hash:20080704071726-34904-bb327b11a8e38788c5d50b1af5e0df5a7feb9275.gz --- diff --git a/lib/util.php b/lib/util.php index e62e800dc5..8beaa77d3d 100644 --- a/lib/util.php +++ b/lib/util.php @@ -825,8 +825,9 @@ function common_enqueue_notice($notice) { $qi->created = DB_DataObject_Cast::dateTime(); $result = $qi->insert(); if ($result === FALSE) { - common_log_db_error($qi, 'INSERT', __FILE__); - return; + $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError'); + common_log(LOG_ERROR, 'DB error inserting queue item: ' . $last_error->message); + return; } common_log(LOG_INFO, 'complete queueing notice ID = ' . $notice->id); return $result;