Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[BUG] GLinks 3.2 - validating links

Quote Reply
[BUG] GLinks 3.2 - validating links
Hi Alex/Adrian/whoever reads this =)

There seems to be a bug in /admin/Links/Tools.pm, line 914.

Code:
# Load reason before setting the Add_Date/Mod_Date to today.
my $reason = Links::send_email('link_rejected.eml', { %$user, %$link }, { get_body => 1 });

If the user doesn't exist from this line:

Code:
my $user = $user_db->get($link->{LinkOwner}) || {};

..then you get a "Can't call as a HASH" error, cos the user doesn't exist - thus hashref doesn't exist =)

I only came across this randomly when fixing up a problem on a clients site, and it turned out he had a user that didn't exist - but had a record in the validation queue =)

Anyway, just FYI Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread [BUG] GLinks 3.2 - validating links Andy 3130 Feb 16, 2008, 1:06 AM
Thread Re: [Andy] [BUG] GLinks 3.2 - validating links
brewt 3013 Feb 18, 2008, 10:55 PM
Post Re: [brewt] [BUG] GLinks 3.2 - validating links
Andy 3032 Feb 19, 2008, 12:32 AM