emergency fixup for bad notices in notice search

darcs-hash:20080811175318-84dde-080db6e81589e794761daab868706704d39e2f1b.gz
This commit is contained in:
Evan Prodromou 2008-08-11 13:53:18 -04:00
parent 2c3ed64027
commit 12aba8ba32
1 changed files with 4 additions and 0 deletions

View File

@ -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));