From 35e0832ec096530da6a1049d315b2d579ee9b9ae Mon Sep 17 00:00:00 2001 From: Max Shinn Date: Tue, 28 Dec 2010 21:14:19 -0600 Subject: [PATCH] Let's try that again --- plugins/GNUsocialPhotos/actions/photos.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/GNUsocialPhotos/actions/photos.php b/plugins/GNUsocialPhotos/actions/photos.php index 07b0472480..3b8a0fd64f 100644 --- a/plugins/GNUsocialPhotos/actions/photos.php +++ b/plugins/GNUsocialPhotos/actions/photos.php @@ -87,12 +87,11 @@ class PhotosAction extends Action function showAlbums() { $album = new GNUsocialPhotoAlbum(); - $album->user_id = $this->user->id; + $album->profile_id = $this->user->id; $albums = array(); if (!$album->find()) { - $cur = common_current_user(); - GNUsocialPhotoAlbum::newAlbum($cur->profile_id, 'Default'); + GNUsocialPhotoAlbum::newAlbum($this->user->id, 'Default'); } $this->elementStart('div', array('class' => 'galleryheader')); -- 2.39.5