From 726e3d4e01f35172aed91ccf450df2ca9dec81d9 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 26 Feb 2015 22:03:59 -0800 Subject: [PATCH] Fix most likely cause of thread watcher data corruption. #341 This was feeding bad results to ThreadWatcher.set404 when the g.THREADID was falsy. --- src/General/lib/databoard.class | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/General/lib/databoard.class b/src/General/lib/databoard.class index 9adaec980..9e0c6f4cc 100755 --- a/src/General/lib/databoard.class +++ b/src/General/lib/databoard.class @@ -50,8 +50,8 @@ class DataBoard get: ({boardID, threadID, postID, defaultValue}) -> if board = @data.boards[boardID] - unless threadID - if postID + unless threadID? + if postID? for ID, thread in board if postID of thread val = thread[postID] @@ -59,7 +59,7 @@ class DataBoard else val = board else if thread = board[threadID] - val = if postID + val = if postID? thread[postID] else thread