summaryrefslogtreecommitdiffstats
path: root/controllers/UsersController.php
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/UsersController.php')
-rw-r--r--controllers/UsersController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/controllers/UsersController.php b/controllers/UsersController.php
index 5462d25..cc0b3db 100644
--- a/controllers/UsersController.php
+++ b/controllers/UsersController.php
@@ -194,6 +194,7 @@ class UsersController extends \lithium\action\Controller {
//Set the feed variable scope (since we are going to use it outside the loop)
$feed;
+ if (isset($user->feed)) {
//For each post ID in $users feed,
foreach ($user->feed as $post)
{
@@ -216,6 +217,7 @@ class UsersController extends \lithium\action\Controller {
$feed = array_reverse($feed);
//This renders a custom layout we use for the feed, then passes user and feed to the view for the variables.
+ }
return compact('user', 'feed');
}