]> ruin.nu Git - ndwebbie.git/commitdiff
don't show posts for autogenerated boards, and ND::Include needed for calls
authorMichael Andreen <harv@ruin.nu>
Fri, 5 Jan 2007 10:32:41 +0000 (10:32 +0000)
committerMichael Andreen <harv@ruin.nu>
Fri, 5 Jan 2007 10:32:41 +0000 (10:32 +0000)
ND.pm
calls.pl

diff --git a/ND.pm b/ND.pm
index a4697702abe15b5c42889b73d9926f5c4971f932..82a477ab5a60e17c064b9b829fd399d92bb22163 100755 (executable)
--- a/ND.pm
+++ b/ND.pm
@@ -115,7 +115,7 @@ sub page {
 FROM forum_boards fb NATURAL JOIN forum_threads ft 
        JOIN forum_posts fp USING (ftid) LEFT OUTER JOIN 
                (SELECT * FROM forum_thread_visits WHERE uid = $1) ftv ON ftv.ftid = ft.ftid
-WHERE (ftv.time IS NULL OR fp.time > ftv.time) AND
+WHERE (ftv.time IS NULL OR fp.time > ftv.time) AND fbid > 0 AND
        fbid IN (SELECT fbid FROM forum_access WHERE gid IN (SELECT groups($1)))
                        },undef,$UID) or $ERROR .= p($DBH->errstr);
 
index 1f779d6244bf8d1cb3ad3538c1a5dc039018360f..342f47d080e8bfc39299f2760faf24ce6491393a 100644 (file)
--- a/calls.pl
+++ b/calls.pl
@@ -19,6 +19,7 @@
 
 use strict;
 use warnings FATAL => 'all';
+use ND::Include;
 our $BODY;
 our $DBH;
 my $error;