From e8949c7029cc18e361a98cd9e61164cc7ade709c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Mon, 29 Jul 2002 16:16:52 +0000 Subject: [PATCH] setting this.discussions to 1 by default (ie. if number cannot be parsed) in function evalStory(). otherwise weblogs with custom skins suddenly get their comment features disabled. --- code/Story/objectFunctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Story/objectFunctions.js b/code/Story/objectFunctions.js index 68b962b1..6246deda 100644 --- a/code/Story/objectFunctions.js +++ b/code/Story/objectFunctions.js @@ -21,7 +21,7 @@ function evalStory(param,modifier) { // assign those properties that can be stored anyway var editableby = parseInt(param.editableby,10); this.editableby = (modifier == this.creator && !isNaN(editableby) ? editableby : null); - this.discussions = !isNaN(parseInt(param.discussions)) ? parseInt(param.discussions,10) : 0; + this.discussions = !isNaN(parseInt(param.discussions)) ? parseInt(param.discussions,10) : 1; // loop through param and collect content properties var cont = this.getContent(); for (var i in param) {