Browse Source

no message (#3118)

tinect 5 years ago
parent
commit
278d741e0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      data/web/inc/ajax/sieve_validation.php

+ 1 - 1
data/web/inc/ajax/sieve_validation.php

@@ -9,7 +9,7 @@ if (isset($_GET['script'])) {
   $sieve = new Sieve\SieveParser();
   $sieve = new Sieve\SieveParser();
   try {
   try {
     if (empty($_GET['script'])) {
     if (empty($_GET['script'])) {
-      echo json_encode(array('type' => 'danger', 'msg' => 'Script cannot be empty'));
+      echo json_encode(array('type' => 'danger', 'msg' => $lang['danger']['script_empty']));
       exit();
       exit();
     }
     }
     $sieve->parse($_GET['script']);
     $sieve->parse($_GET['script']);