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