From: Max Shinn Date: Wed, 29 Dec 2010 02:59:01 +0000 (-0600) Subject: Fixed undefined variable while creating new albums X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d68d95e08d5f69f30fc85a64aa257118be34e576;p=quix0rs-gnu-social.git Fixed undefined variable while creating new albums --- diff --git a/plugins/GNUsocialPhotos/actions/photos.php b/plugins/GNUsocialPhotos/actions/photos.php index a75c446be1..07b0472480 100644 --- a/plugins/GNUsocialPhotos/actions/photos.php +++ b/plugins/GNUsocialPhotos/actions/photos.php @@ -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'));