summaryrefslogtreecommitdiffstats
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:02:06 -0400
commit27d1807aa074bcf316e814ef3d4b9790f35d1a69 (patch)
treec483aead47226c56fb1adf3f8bc49372bb550080
parentc95c70e2215664d7c1b31b9e83a1f06a64bf46ca (diff)
downloadpfsense-27d1807aa074bcf316e814ef3d4b9790f35d1a69.zip
pfsense-27d1807aa074bcf316e814ef3d4b9790f35d1a69.tar.gz
Don't call widget callback function if no data is returned
(cherry picked from commit 89d83febe6bf0fd63ec72d53eb8e524a8d19994e)
-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