From 4e5ccb933bcbe130e1049b86e674d902f474bdc8 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 4 Jul 2008 03:17:26 -0400 Subject: [PATCH] problem with dates in db error darcs-hash:20080704071726-34904-bb327b11a8e38788c5d50b1af5e0df5a7feb9275.gz --- lib/util.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.5