Ok, here is the actual links code that is screwing up, it is pretty obvious why:
(pardon the blah blah blah's and any typos there may be, my copy and paste does not work for some reason)
if (!$user){
print $IN->header();
print links(site html display blah blah blah)
return;
}
if ($user->{'STATUS'} eq 'NOT VILIDATED') { #ERROR HERE
print $IN->header();
print links(site html display blah blah blah)
return;
}
$user is going to be a 1 when it gets to the error line so $user->STATUS makes no sense. But I dont see how the old function works or how I can get mine to work without modifing the links source?
(pardon the blah blah blah's and any typos there may be, my copy and paste does not work for some reason)
Code:
my $user=Links::init_user($username,$password); if (!$user){
print $IN->header();
print links(site html display blah blah blah)
return;
}
if ($user->{'STATUS'} eq 'NOT VILIDATED') { #ERROR HERE
print $IN->header();
print links(site html display blah blah blah)
return;
}
$user is going to be a 1 when it gets to the error line so $user->STATUS makes no sense. But I dont see how the old function works or how I can get mine to work without modifing the links source?