I changed the
$LINKS{db_gen_category_list} = 0;
When adding a link and validating it everything works fine.
If I modify a link and validate it I get the error that lsql expects an integer not chars.
I had a look at admin.cgi and found that when modifying it doesn't convert the Category-ID (String) to the numeric ID.
I just copied the code from the validating section.
# Fix up the category name.
($links{$id}{'CategoryID'} !~ /^\d+$/) and ($links{$id}{'CategoryID'} = &get_category_id($links{$id}{'CategoryID'}));
my $t = $links{$id}{CategoryID};
and pasted it under the foreach-loop in modify.
Alex
[This message has been edited by Alex404 (edited January 22, 2000).]
$LINKS{db_gen_category_list} = 0;
When adding a link and validating it everything works fine.
If I modify a link and validate it I get the error that lsql expects an integer not chars.
I had a look at admin.cgi and found that when modifying it doesn't convert the Category-ID (String) to the numeric ID.
I just copied the code from the validating section.
# Fix up the category name.
($links{$id}{'CategoryID'} !~ /^\d+$/) and ($links{$id}{'CategoryID'} = &get_category_id($links{$id}{'CategoryID'}));
my $t = $links{$id}{CategoryID};
and pasted it under the foreach-loop in modify.
Alex
[This message has been edited by Alex404 (edited January 22, 2000).]