]> ruin.nu Git - ndwebbie.git/blobdiff - ND/Include.pm
don't do max on ftv.time, since it'll likely be null anyway
[ndwebbie.git] / ND / Include.pm
index 447c4f9bc9a8e7ac84b2d937afed3c74081c6217..81f5a8db8fcbe73a84aa222fefca7f15fcd5991b 100644 (file)
@@ -19,7 +19,7 @@
 
 package ND::Include;
 use strict;
-use warnings FATAL => 'all';
+use warnings;
 use CGI qw{:standard};
 require Exporter;
 
@@ -53,7 +53,7 @@ sub intel_log {
 
 sub unread_query {
        return $ND::DBH->prepare_cached(q{
-                       SELECT count(*) AS unread, max(ftv.time) AS last_visit
+                       SELECT count(*) AS unread
 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