From 6c5ba42e94471d2eaed9e1a0f4d8df5b5c129586 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 16 Jul 2011 02:35:58 +0000 Subject: [PATCH] Work-around bizarre (inexplicable) error: msg.ssjs line 42: Error: can't convert template.u_num to an integer I'm really kind of lost on this one and suspect it might have something to do with the msgbase lazy properties. --- web/root/msgs/msg.ssjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/root/msgs/msg.ssjs b/web/root/msgs/msg.ssjs index 8ede21313f..c713f7c237 100644 --- a/web/root/msgs/msg.ssjs +++ b/web/root/msgs/msg.ssjs @@ -37,7 +37,7 @@ if(hdr.attr & MSG_MODERATED) { if(!(hdr.attr & MSG_VALIDATED)) error("Message pending moderator validation"); } -if(hdr.from_ext != null) { +if(Number(hdr.from_ext) > 0) { template.u_num = hdr.from_ext; usr = new User(template.u_num); template.author_firston = strftime("%m/%d/%y",usr.stats.firston_date); -- GitLab