summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-11-27 14:20:57 -0800
committerBrion Vibber <brion@pobox.com>2009-11-27 14:21:23 -0800
commit2ba67e9b6284043d39656d0476605bc8235edfd2 (patch)
treebfa1f445d757d152fbd4ce23ef3ab8ce12309ee4
parent914242e22452255adad69419e324f36717243f93 (diff)
Log database errors when saving notice_inbox entries
-rw-r--r--classes/Notice.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index ebb5022b9..3126cc064 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -964,7 +964,10 @@ class Notice extends Memcached_DataObject
}
if ($cnt >= MAX_BOXCARS) {
$inbox = new Notice_inbox();
- $inbox->query($qry);
+ $result = $inbox->query($qry);
+ if (PEAR::isError($result)) {
+ common_log_db_error($inbox, $qry);
+ }
$qry = $qryhdr;
$cnt = 0;
}
@@ -972,7 +975,10 @@ class Notice extends Memcached_DataObject
if ($cnt > 0) {
$inbox = new Notice_inbox();
- $inbox->query($qry);
+ $result = $inbox->query($qry);
+ if (PEAR::isError($result)) {
+ common_log_db_error($inbox, $qry);
+ }
}
return;