From 975ae6706b4ac868425193cf25bcbbb268051b5d Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 18 Jul 2018 16:28:24 +0530 Subject: handle empty array in comparison --- js/Sources/PULSE_SC.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/Sources/PULSE_SC.js') diff --git a/js/Sources/PULSE_SC.js b/js/Sources/PULSE_SC.js index 8a70dd1a..e6976819 100644 --- a/js/Sources/PULSE_SC.js +++ b/js/Sources/PULSE_SC.js @@ -88,7 +88,7 @@ function PULSE_SC() { break; } } else { - if ((lasterror()!=[])) { + if ((lasterror().length!=0)) { messagebox(lasterror()); } var ok = false; -- cgit