summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-10 11:15:45 -0800
committerEvan Prodromou <evan@status.net>2010-01-10 11:15:45 -0800
commit91760ae2ae677c68fa818e98e35525f07ded3fd8 (patch)
treea63c8cc4348405e7a74a3b51e809dfcc3def2f4b /lib
parent31585453fc7c7ed2d4b9c72ef0478e541b5622e4 (diff)
parentd6db8e58170e6e78a0fd67d50f7fea5d95b5d9c8 (diff)
Merge branch 'master' of git@gitorious.org:statusnet/mainline
Diffstat (limited to 'lib')
-rw-r--r--lib/jsonsearchresultslist.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/jsonsearchresultslist.php b/lib/jsonsearchresultslist.php
index 569bfa873..0d72ddf7a 100644
--- a/lib/jsonsearchresultslist.php
+++ b/lib/jsonsearchresultslist.php
@@ -105,8 +105,14 @@ class JSONSearchResultsList
break;
}
- $item = new ResultItem($this->notice);
- array_push($this->results, $item);
+ $profile = $this->notice->getProfile();
+
+ // Don't show notices from deleted users
+
+ if (!empty($profile)) {
+ $item = new ResultItem($this->notice);
+ array_push($this->results, $item);
+ }
}
$time_end = microtime(true);