diff options
author | Evan Prodromou <evan@status.net> | 2010-01-06 23:23:30 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-06 23:23:30 -0800 |
commit | a55939f3b1540cf86b6edcf4f0c8ff79fb5f6a20 (patch) | |
tree | b8ed9dc90ba728e36ca3ca77bed71f45a77d6dd4 /lib/jsonsearchresultslist.php | |
parent | e1c7851a067d4d8201126816884b9992720010f5 (diff) | |
parent | 5d13126c88a8143a1628cc52c2dae4581f134273 (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/jsonsearchresultslist.php')
-rw-r--r-- | lib/jsonsearchresultslist.php | 10 |
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); |