Home : Products : Gossamer Forum : Discussion :

Products: Gossamer Forum: Discussion: How to update User table with an external global?: Edit Log

Here is the list of edits for this post
How to update User table with an external global?
Hi,

I try to update the GForum User table throw a global in Links SQL. Here the global I try to use in Links SQL:

Code:

sub {
my $vars = shift;
my $user_id = $vars->{user_id};
use lib '/path/to/GForum/admin';
my $tu = GT::SQL->new ("/path/to/GForum/admin/defs");
$tu->table('User')->update( { user_something => '1' }, { user_id => $user_id } );
}


When I try the global, I receive this error:

Code:

Can't call method "table" on an undefined value at /path/to/GForum/admin/GForum/Table/User.pm line 360.


The global works with the Post or Forum table, but not with the User table. It's probably a permission problem, but I don't know how to solve it.

Thank you very much for your help!

François

Last edited by:

Franco: May 19, 2004, 7:48 AM

Edit Log: