From d68d95e08d5f69f30fc85a64aa257118be34e576 Mon Sep 17 00:00:00 2001 From: Max Shinn Date: Tue, 28 Dec 2010 20:59:01 -0600 Subject: [PATCH] Fixed undefined variable while creating new albums --- plugins/GNUsocialPhotos/actions/photos.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/GNUsocialPhotos/actions/photos.php b/plugins/GNUsocialPhotos/actions/photos.php index a75c446be1..07b0472480 100644 --- a/plugins/GNUsocialPhotos/actions/photos.php +++ b/plugins/GNUsocialPhotos/actions/photos.php @@ -91,7 +91,8 @@ class PhotosAction extends Action $albums = array(); if (!$album->find()) { - GNUsocialPhotoAlbum::newAlbum($cur->id, 'Default'); + $cur = common_current_user(); + GNUsocialPhotoAlbum::newAlbum($cur->profile_id, 'Default'); } $this->elementStart('div', array('class' => 'galleryheader'));