]> source.dussan.org Git - rspamd.git/commitdiff
fixes variable condition 2061/head
authorfiredranzer <rupeshharode@gmail.com>
Wed, 7 Mar 2018 08:56:14 +0000 (14:26 +0530)
committerfiredranzer <rupeshharode@gmail.com>
Wed, 7 Mar 2018 08:56:14 +0000 (14:26 +0530)
interface/js/app/config.js

index ec36dce489f9b7c9911993956faeedba8f39806a..4346dee45a4eb6a49a903a9605789b95e3bb9161 100644 (file)
@@ -228,7 +228,7 @@ function($) {
                     else if(eltsArray[2]<0){
                         rspamd.alertMessage('alert-modal alert-error', 'Greylist can not be negative');
                     }
-                    else if(eltsArray[2]<eltsArray[1]<eltsArray[0]){
+                    else if(eltsArray[2]<eltsArray[1] && eltsArray[1]<eltsArray[0]){
                         callback('saveactions', null, null, "POST", {}, {
                             data: elts,
                             dataType: "json",