summaryrefslogtreecommitdiff
path: root/classes/Notice.php
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:20:57 -0800
commite85e47b509218117e8c454d698a5f7de2ff07812 (patch)
tree2db7ac1863ad2dbc34f44b4bbf6a6101e73217b1 /classes/Notice.php
parent9f075a6898c9b8468f469cc9cf68541569d46bfa (diff)
Log database errors when saving notice_inbox entries
Diffstat (limited to 'classes/Notice.php')
-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;