]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix breakage in AutocompletePlugin
authorBrion Vibber <brion@pobox.com>
Mon, 6 Dec 2010 23:20:49 +0000 (15:20 -0800)
committerBrion Vibber <brion@pobox.com>
Mon, 6 Dec 2010 23:23:12 +0000 (15:23 -0800)
plugins/Autocomplete/autocomplete.php

index a4e2d9baa4a3c16bfb03034e80e8891a07bcc576..be5b51a1999fdfbe5fb89135fc45dc4b2940344d 100644 (file)
@@ -59,7 +59,7 @@ class AutocompleteAction extends Action
     {
         $max=0;
         foreach($this->users as $user){
-            $max = max($max,strtotime($user->modified),strtotime($user->profile->modified));
+            $max = max($max,strtotime($user->modified),strtotime($user->getProfile()->modified));
         }
         foreach($this->groups as $group){
             $max = max($max,strtotime($group->modified));