summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-06 20:40:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-06 20:40:21 +0000
commit55bade0b337005faf66999dd0b35024385c0817f (patch)
treea833d0bb5ff5777a929327ac03fd25c00834e37e
parente196278c081b2ee5fe12ed5d2a58aec788fa9aa8 (diff)
downloadpfsense-55bade0b337005faf66999dd0b35024385c0817f.zip
pfsense-55bade0b337005faf66999dd0b35024385c0817f.tar.gz
Check all AJAX values. If any of them are undefined then return.
-rw-r--r--usr/local/www/javascript/index/sajax.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/javascript/index/sajax.js b/usr/local/www/javascript/index/sajax.js
index 0a8261e..1ab0e80 100644
--- a/usr/local/www/javascript/index/sajax.js
+++ b/usr/local/www/javascript/index/sajax.js
@@ -14,8 +14,9 @@ function stats(x) {
var values = x.split("|");
- if(values[0] == 'undefined')
- return;
+ foreach($values as $value)
+ if(value == 'undefined')
+ return;
updateCPU(values[0]);
updateMemory(values[1]);
OpenPOWER on IntegriCloud