summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-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;