summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/index.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-09-22 12:00:27 -0400
committerSteve Beaver <sbeaver@netgate.com>2017-09-22 12:01:23 -0400
commit89d83febe6bf0fd63ec72d53eb8e524a8d19994e (patch)
tree0b1ee5cfc4bfb74c891b2632971cae3e4815f502 /src/usr/local/www/index.php
parent9b6a76930500246ae06591236d9523e04620f310 (diff)
downloadpfsense-89d83febe6bf0fd63ec72d53eb8e524a8d19994e.zip
pfsense-89d83febe6bf0fd63ec72d53eb8e524a8d19994e.tar.gz
Don't call widget callback function if no data is returned
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r--src/usr/local/www/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index 2a053f7..b5a150d 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -610,7 +610,10 @@ events.push(function() {
data: wd.parms,
success: function(data){
- wd.callback(data);
+ if (data.length > 0) {
+ wd.callback(data);
+ }
+
ajaxmutex = false;
},
OpenPOWER on IntegriCloud