Let's try that again

This commit is contained in:
Max Shinn 2010-12-28 21:14:19 -06:00
parent d68d95e08d
commit 35e0832ec0
1 changed files with 2 additions and 3 deletions

View File

@ -87,12 +87,11 @@ class PhotosAction extends Action
function showAlbums() function showAlbums()
{ {
$album = new GNUsocialPhotoAlbum(); $album = new GNUsocialPhotoAlbum();
$album->user_id = $this->user->id; $album->profile_id = $this->user->id;
$albums = array(); $albums = array();
if (!$album->find()) { if (!$album->find()) {
$cur = common_current_user(); GNUsocialPhotoAlbum::newAlbum($this->user->id, 'Default');
GNUsocialPhotoAlbum::newAlbum($cur->profile_id, 'Default');
} }
$this->elementStart('div', array('class' => 'galleryheader')); $this->elementStart('div', array('class' => 'galleryheader'));