From 12aba8ba32119aa9d98304db0ee220b6f5de1dd0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 11 Aug 2008 13:53:18 -0400 Subject: emergency fixup for bad notices in notice search darcs-hash:20080811175318-84dde-080db6e81589e794761daab868706704d39e2f1b.gz --- actions/noticesearch.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actions') 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)); -- cgit v1.2.3-54-g00ecf