]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/showfavorites.php
Ticket #1094 Facebook app invites page was failing if no friends had added the app yet
[quix0rs-gnu-social.git] / actions / showfavorites.php
index d2c91c025002b9ee66287a8147815fbf4f3bdba8..31479e1a7891d0933e63cb8bc5735ccc99d59345 100644 (file)
@@ -52,6 +52,17 @@ class ShowfavoritesAction extends Action
     /** Page of the faves we're on */
     var $page = null;
 
+    /**
+     * Is this a read-only page?
+     *
+     * @return boolean true
+     */
+
+    function isReadOnly()
+    {
+        return true;
+    }
+
     /**
      * Title of the page
      *
@@ -101,6 +112,8 @@ class ShowfavoritesAction extends Action
             $this->page = 1;
         }
 
+        common_set_returnto($this->selfUrl());
+        
         return true;
     }