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

View File

@ -91,7 +91,8 @@ class PhotosAction extends Action
$albums = array(); $albums = array();
if (!$album->find()) { if (!$album->find()) {
GNUsocialPhotoAlbum::newAlbum($cur->id, 'Default'); $cur = common_current_user();
GNUsocialPhotoAlbum::newAlbum($cur->profile_id, 'Default');
} }
$this->elementStart('div', array('class' => 'galleryheader')); $this->elementStart('div', array('class' => 'galleryheader'));