From: Michael Andreen Date: Sun, 7 Jan 2007 11:26:14 +0000 (+0000) Subject: ftid in users instead of log_uid in forum_threads X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=8663c593fac5806edc0c948e8234f8e838f8fd35;p=ndwebbie.git ftid in users instead of log_uid in forum_threads --- diff --git a/ND/Include.pm b/ND/Include.pm index 889c97d..836010a 100644 --- a/ND/Include.pm +++ b/ND/Include.pm @@ -40,7 +40,7 @@ sub max { sub log_message { my ($uid, $message) = @_; my $log = $ND::DBH->prepare_cached(q{INSERT INTO forum_posts (ftid,uid,message) VALUES( - (SELECT ftid FROM forum_threads WHERE log_uid = $1),$1,$2)}); + (SELECT ftid FROM users WHERE uid = $1),$1,$2)}); $log->execute($uid,$message) or $ND::ERROR .= p($ND::DBH->errstr); }