diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-08-09 14:19:29 -0400 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-08-09 14:19:29 -0400 |
commit | e78d59403b45d7a5b1ea4e4bdfcfbe7a2a65f77a (patch) | |
tree | 7c108f5ba0948ac9912c02f0867fad1fe7200e7b /src | |
parent | 8bf4cf1f1445f9ec71e0cdc7489c520c40451904 (diff) | |
download | pfsense-e78d59403b45d7a5b1ea4e4bdfcfbe7a2a65f77a.zip pfsense-e78d59403b45d7a5b1ea4e4bdfcfbe7a2a65f77a.tar.gz |
Ensure the callback function exists before calling
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index 9620965..a9d58e7 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -665,7 +665,7 @@ events.push(function() { var freq = ajaxspecs[ajaxidx].freq; // widget can specifify it should be called freq times around hte loop if (!ajaxmutex) { - if ((ajaxcntr % freq) === 0) { + if (((ajaxcntr % freq) === 0) && (typeof ajaxspecs[ajaxidx].callback === "function" )) { make_ajax_call(ajaxspecs[ajaxidx]); } |