]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
problem with dates in db error
authorEvan Prodromou <evan@controlezvous.ca>
Fri, 4 Jul 2008 07:17:26 +0000 (03:17 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Fri, 4 Jul 2008 07:17:26 +0000 (03:17 -0400)
darcs-hash:20080704071726-34904-bb327b11a8e38788c5d50b1af5e0df5a7feb9275.gz

lib/util.php

index e62e800dc58a84002dacf2ff3127c0f671f8dbb6..8beaa77d3da78e2b7c2d35580651071c9192039f 100644 (file)
@@ -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;