Fixed undefined variable while creating new albums
This commit is contained in:
parent
e9e5fdb139
commit
d68d95e08d
|
@ -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'));
|
||||
|
|
Loading…
Reference in New Issue
Block a user