]> ruin.nu Git - ndwebbie.git/commitdiff
use provided uid instead of global variable
authorMichael Andreen <harv@ruin.nu>
Wed, 28 Mar 2007 11:40:03 +0000 (11:40 +0000)
committerMichael Andreen <harv@ruin.nu>
Wed, 28 Mar 2007 11:40:03 +0000 (11:40 +0000)
ND/Web/Forum.pm

index 6551518bf503967545dbcae446f6fa98ead55576..ca2195e352f3d7bd313af97f8b95dabd70ac5809 100644 (file)
@@ -85,7 +85,7 @@ sub addForumThread {
 
        my $insert = $dbh->prepare(q{INSERT INTO forum_threads (fbid,subject,uid) VALUES($1,$2,$3)});
 
-       if ($insert->execute($board->{id},escapeHTML($subject),$ND::UID)){
+       if ($insert->execute($board->{id},escapeHTML($subject),$uid)){
                my $id = $dbh->last_insert_id(undef,undef,undef,undef,"forum_threads_ftid_seq");
                return $dbh->selectrow_hashref(q{SELECT ftid AS id, subject, $2::boolean AS post FROM forum_threads WHERE ftid = $1}
                        ,undef,$id,$board->{post})