]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/actions/photos.php
Fixed undefined variable while creating new albums
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / actions / photos.php
index a75c446be1fc04d13c631f29d8f96c41d37b68c4..07b0472480c30d5a540ef9caac03252af169fa33 100644 (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'));