Log database errors when saving notice_inbox entries

This commit is contained in:
Brion Vibber 2009-11-27 14:20:57 -08:00
parent 914242e224
commit 2ba67e9b62
1 changed files with 8 additions and 2 deletions

View File

@ -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;