From: Evan Prodromou Date: Mon, 11 Aug 2008 17:53:18 +0000 (-0400) Subject: emergency fixup for bad notices in notice search X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=12aba8ba32119aa9d98304db0ee220b6f5de1dd0;p=quix0rs-gnu-social.git emergency fixup for bad notices in notice search darcs-hash:20080811175318-84dde-080db6e81589e794761daab868706704d39e2f1b.gz --- 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));