no message (#3118)

This commit is contained in:
tinect 2019-11-09 10:08:16 +01:00 committed by André Peters
parent 9ccbeb7f66
commit 278d741e0a

View File

@ -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']);