Fixed undefined variable while creating new albums

This commit is contained in:
Max Shinn 2010-12-28 20:59:01 -06:00
parent e9e5fdb139
commit d68d95e08d
1 changed files with 2 additions and 1 deletions

View File

@ -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'));