From: Jeffery To Date: Thu, 6 Aug 2009 16:03:50 +0000 (+0800) Subject: Fixed missing/null values from JSON search results X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ad1c91a1cfcde05232dba3a56f4259c43c830969;p=quix0rs-gnu-social.git Fixed missing/null values from JSON search results --- diff --git a/lib/jsonsearchresultslist.php b/lib/jsonsearchresultslist.php index 7beea9328d..34a3d530e8 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);