From 4fd69af2e66078f4b573cf7a5c39c93b6aa914c7 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Thu, 15 Apr 2021 21:00:01 +0000 Subject: [PATCH] add nullcheck for this or sites without ppd will be NaN --- schedules/tasks/webring.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/schedules/tasks/webring.js b/schedules/tasks/webring.js index 39640cd7..343dfb29 100644 --- a/schedules/tasks/webring.js +++ b/schedules/tasks/webring.js @@ -61,7 +61,9 @@ module.exports = { //convert to numbers because old infinity webring plugin returns string board.sequence_value = parseInt(board.totalPosts); board.pph = parseInt(board.postsPerHour); - board.ppd = parseInt(board.postsPerDay); + if (board.postsPerDay != null) { + board.ppd = parseInt(board.postsPerDay); + } board.ips = parseInt(board.uniqueUsers); board.settings = { sfw: !board.nsfw,