]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed missing/null values from JSON search results
authorJeffery To <jeffery.to@gmail.com>
Thu, 6 Aug 2009 16:03:50 +0000 (00:03 +0800)
committerJeffery To <jeffery.to@gmail.com>
Thu, 6 Aug 2009 16:03:50 +0000 (00:03 +0800)
lib/jsonsearchresultslist.php

index 7beea9328d27649d507b4e8a753324ae836648d5..34a3d530e8d6bbd17247269f807a584a8cc00e59 100644 (file)
@@ -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);