summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-08-07 00:03:50 +0800
committerJeffery To <jeffery.to@gmail.com>2009-08-07 00:03:50 +0800
commitad1c91a1cfcde05232dba3a56f4259c43c830969 (patch)
tree73412fe46f9482682c99422f09c2e204c9d31efe /lib
parentc8c2d9d7c93f40e7ac81c6211f8ba4c3f6ae91d9 (diff)
Fixed missing/null values from JSON search results
Diffstat (limited to 'lib')
-rw-r--r--lib/jsonsearchresultslist.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jsonsearchresultslist.php b/lib/jsonsearchresultslist.php
index 7beea9328..34a3d530e 100644
--- a/lib/jsonsearchresultslist.php
+++ b/lib/jsonsearchresultslist.php
@@ -207,7 +207,7 @@ class ResultItem
$replier_profile = null;
if ($this->notice->reply_to) {
- $reply = Notice::staticGet(intval($notice->reply_to));
+ $reply = Notice::staticGet(intval($this->notice->reply_to));
if ($reply) {
$replier_profile = $reply->getProfile();
}
@@ -224,7 +224,7 @@ class ResultItem
$user = User::staticGet('id', $this->profile->id);
- $this->iso_language_code = $this->user->language;
+ $this->iso_language_code = $user->language;
$this->source = $this->getSourceLink($this->notice->source);