Needs review
Project:
Photo album
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Sep 2005 at 16:50 UTC
Updated:
3 Nov 2005 at 02:47 UTC
Jump to comment: Most recent file
I'm unable to add new photos to a created album.
I've found the error in the code, in "album_page" method the $user->uid variable it's used (line 141 on album.module) to see if the user has permission to add images, but $user object it's not initialized, so I added "global $user" before the if sentence and it just works.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | album_3.module | 7.94 KB | deNuo |
Comments
Comment #1
dboomerang commentedAdding
global $user;
Didnt work for me, maybe i added at the wrong place?
Can anyone advise?
Comment #2
deNuo commentedHere's the module file, updated to allow additional photos to already existent albums!