]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Log database errors when saving notice_inbox entries
authorBrion Vibber <brion@pobox.com>
Fri, 27 Nov 2009 22:20:57 +0000 (14:20 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 27 Nov 2009 22:21:23 +0000 (14:21 -0800)
classes/Notice.php

index ebb5022b9910f6e1c89d528a620d461ae3bdc3cc..3126cc064764c9b8adc65216aea6010ea681018e 100644 (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;