Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [Wychwood] Uninitialized value in pattern match in Convert.pm

Quote Reply
Re: [Wychwood] Uninitialized value in pattern match in Convert.pm In reply to
See, the thing is, I haven't modified that code. It's part of the Gossamer Forum code. That's why I'm posting the question here!

The code in Convert.pm where this occurs is as follows:

sub convert_signature { GT::Plugins->dispatch("$CFG->{admin_root_path}/Plugins/GForum", 'convert_signature', \&_plg_convert_signature, @_) }
sub _plg_convert_signature {
my ($text, $sig) = @_;
$$text =~ s/\[\s*(\.*)\s*\Q$CFG->{markup_signature_tag}\E\s*\]/
if ($USER and not $USER->{user_view_signatures}) {
'';
}

Line 40 is the 3rd-last line that starts "if ($USER".

Can someone tell me what might be wrong with it? Thanks.
Dan Cooperstock
info@Software4NonProfits.com
Subject Author Views Date
Thread Uninitialized value in pattern match in Convert.pm DanCooperstock 5249 Jun 19, 2007, 2:13 PM
Thread Re: [DanCooperstock] Uninitialized value in pattern match in Convert.pm
Andy 5128 Jun 19, 2007, 2:36 PM
Thread Re: [Andy] Uninitialized value in pattern match in Convert.pm
DanCooperstock 5112 Jun 19, 2007, 2:46 PM
Post Re: [DanCooperstock] Uninitialized value in pattern match in Convert.pm
Andy 5113 Jun 20, 2007, 2:39 AM
Thread Re: [DanCooperstock] Uninitialized value in pattern match in Convert.pm
Wychwood 5125 Jun 21, 2007, 12:10 PM
Thread Re: [Wychwood] Uninitialized value in pattern match in Convert.pm
DanCooperstock 5089 Jun 22, 2007, 4:40 AM
Post Re: [DanCooperstock] Uninitialized value in pattern match in Convert.pm
Wychwood 5104 Jun 22, 2007, 5:21 PM