From ba09e88aec9b90638db7876dbcfbfadc2f0b3fbf Mon Sep 17 00:00:00 2001
From: firedranzer <rupeshharode@gmail.com>
Date: Wed, 7 Mar 2018 14:26:14 +0530
Subject: fixes variable condition

---
 interface/js/app/config.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/js/app/config.js b/interface/js/app/config.js
index ec36dce48..4346dee45 100644
--- a/interface/js/app/config.js
+++ b/interface/js/app/config.js
@@ -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",
-- 
cgit v1.2.3