Gossamer Forum
Quote Reply
Variable is not scalar
I have this global that returns the category name on the details page. If I call with a GT filter tag I get an error. How can I fix this please?

<%ucfirst Cat_Name%>

sub {
my $tags = shift;
my $id = $tags->{'ID'};
my $db = $DB->table ('Category','CatLinks');
$db->select_options('LIMIT 1');
my $catid = $db->select ( { LinkID => $id }, ['Name'] )->fetchrow_array;
$catid =~ tr/A-Z/a-z/;
return $catid;
}


RETURNS:

Error: Variable 'Cat_Name' is not scalar

--------------------------------
Privacy Software
Subject Author Views Date
Thread Variable is not scalar BLOOD 2575 Feb 14, 2006, 10:09 AM
Post Re: [BLOOD] Variable is not scalar
pugdog 2484 Feb 17, 2006, 12:56 AM
Post Re: [BLOOD] Variable is not scalar
afinlr 2485 Feb 17, 2006, 4:06 AM
Post Re: [BLOOD] Variable is not scalar
BLOOD 2475 Feb 17, 2006, 7:56 AM