emergency fixup for bad notices in notice search
darcs-hash:20080811175318-84dde-080db6e81589e794761daab868706704d39e2f1b.gz
This commit is contained in:
parent
2c3ed64027
commit
12aba8ba32
@ -85,6 +85,10 @@ class NoticesearchAction extends SearchAction {
|
|||||||
|
|
||||||
function show_notice($notice, $terms) {
|
function show_notice($notice, $terms) {
|
||||||
$profile = $notice->getProfile();
|
$profile = $notice->getProfile();
|
||||||
|
if (!$profile) {
|
||||||
|
common_log_db_error($notice, 'SELECT', __FILE__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
# XXX: RDFa
|
# XXX: RDFa
|
||||||
common_element_start('li', array('class' => 'notice_single',
|
common_element_start('li', array('class' => 'notice_single',
|
||||||
'id' => 'notice-' . $notice->id));
|
'id' => 'notice-' . $notice->id));
|
||||||
|
Loading…
Reference in New Issue
Block a user