diff options
Diffstat (limited to 'actions/noticesearch.php')
-rw-r--r-- | actions/noticesearch.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actions/noticesearch.php b/actions/noticesearch.php index 29527c567..c257ecec5 100644 --- a/actions/noticesearch.php +++ b/actions/noticesearch.php @@ -85,6 +85,10 @@ class NoticesearchAction extends SearchAction { function show_notice($notice, $terms) { $profile = $notice->getProfile(); + if (!$profile) { + common_log_db_error($notice, 'SELECT', __FILE__); + return; + } # XXX: RDFa common_element_start('li', array('class' => 'notice_single', 'id' => 'notice-' . $notice->id)); |