Problem with Album Timestamp

derari

Joined: 2009-08-16
Posts: 4
Posted: Mon, 2009-08-17 09:48


Gallery version: newest (2.3?)

Hello,

I am using the module Album Timestamp(v0.1), and I have this problem: if the module is active, I can't change user data or create new users. In debug mode, I get this message:

Quote:
Fatal error: Call to undefined method GalleryUser::getParentId() in .../gallery/modules/albumtimestamp/module.inc on line 91

The problem can be fixed by inserting at line 90, so it looks like this:

Quote:
$item = $event->getEntity();
if ($item instanceof GalleryUser) return array(null, null); // <-- hotfix!
$itemId = $item->getId();

However, I think there should be a better way to do this.
I hope this was helpfull.

Greetings,
derari