]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/actions/photos.php
Let's try that again
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / actions / photos.php
index 07b0472480c30d5a540ef9caac03252af169fa33..3b8a0fd64f29e55093f13fd0e4102cca8f15107d 100644 (file)
@@ -87,12 +87,11 @@ class PhotosAction extends Action
     function showAlbums()
     {
         $album = new GNUsocialPhotoAlbum();
-        $album->user_id = $this->user->id;
+        $album->profile_id = $this->user->id;
 
         $albums = array();
         if (!$album->find()) {
-            $cur = common_current_user();
-            GNUsocialPhotoAlbum::newAlbum($cur->profile_id, 'Default');
+            GNUsocialPhotoAlbum::newAlbum($this->user->id, 'Default');
         }
 
         $this->elementStart('div', array('class' => 'galleryheader'));