diff options
author | Evan Prodromou <evan@controlezvous.ca> | 2008-07-04 03:17:26 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlezvous.ca> | 2008-07-04 03:17:26 -0400 |
commit | 4e5ccb933bcbe130e1049b86e674d902f474bdc8 (patch) | |
tree | 9d6259be893f8ec720087a83a6f38f95fe1431cb /lib | |
parent | a742505306e13b41eb180ff3117da07e61f7b9a1 (diff) |
problem with dates in db error
darcs-hash:20080704071726-34904-bb327b11a8e38788c5d50b1af5e0df5a7feb9275.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php index e62e800dc..8beaa77d3 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; |