summaryrefslogtreecommitdiff
path: root/lib/jsonsearchresultslist.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-01-06 13:40:28 -0800
committerZach Copley <zach@status.net>2010-01-06 13:40:28 -0800
commit013e6dfdd481470cc02994b6db58a387a95016ca (patch)
treed900f905d5812b12fbb18795b7480003d650bb73 /lib/jsonsearchresultslist.php
parent7ed5a38fca99ef47deba973523510f295c3ca6f7 (diff)
Don't output notices from deleted users.
Diffstat (limited to 'lib/jsonsearchresultslist.php')
-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);