]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed undefined variable while creating new albums
authorMax Shinn <trombonechamp@gmail.com>
Wed, 29 Dec 2010 02:59:01 +0000 (20:59 -0600)
committerMax Shinn <trombonechamp@gmail.com>
Wed, 29 Dec 2010 02:59:01 +0000 (20:59 -0600)
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'));