summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-11 13:53:18 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-11 13:53:18 -0400
commit12aba8ba32119aa9d98304db0ee220b6f5de1dd0 (patch)
tree8ee66d964649187825af30d1025e9709b70483b1 /actions
parent2c3ed64027506acd12cf9ba2485fd9fa8c519d09 (diff)
emergency fixup for bad notices in notice search
darcs-hash:20080811175318-84dde-080db6e81589e794761daab868706704d39e2f1b.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/noticesearch.php4
1 files changed, 4 insertions, 0 deletions
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));