]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
handle missing profile for notices better in NoticeList
authorEvan Prodromou <evan@status.net>
Tue, 13 Jul 2010 14:59:01 +0000 (10:59 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 13 Jul 2010 14:59:01 +0000 (10:59 -0400)
lib/noticelist.php

index e23cf3b6d5ead1e098bf06c93c4b0a0ac219f75d..17adf3a49cdef86043c0c44b3970b9ed9143ecbc 100644 (file)
@@ -96,8 +96,14 @@ class NoticeList extends Widget
                 break;
             }
 
-            $item = $this->newListItem($this->notice);
-            $item->show();
+            try {
+                $item = $this->newListItem($this->notice);
+                $item->show();
+            } catch (Exception $e) {
+                // we log exceptions and continue
+                common_log(LOG_ERR, $e->getMessage());
+                continue;
+            }
         }
 
         $this->out->elementEnd('ol');