X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fnoticesearch.php;h=c257ecec56ebf23b4b9dda4c357824a2f192790a;hb=63438008e021638004a61e76a7d6627fc2f49199;hp=29527c56725c721486b2d234bf2b4c108fac2826;hpb=58ae93a621b1e5379f61cbfd5af1d7ac49b7dc15;p=quix0rs-gnu-social.git diff --git a/actions/noticesearch.php b/actions/noticesearch.php index 29527c5672..c257ecec56 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));