1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

Language File Editor no longer saves definitions with empty values.

This commit is contained in:
Cameron
2017-10-14 14:55:30 -07:00
parent b7fe1322bc
commit ef239dbc0e

View File

@@ -1131,6 +1131,11 @@ class lancheck
$defvar = $_POST['newdef'][$i]; $defvar = $_POST['newdef'][$i];
} }
if(empty($deflang))
{
continue;
}
if($_POST['newdef'][$i] == "LC_ALL" && vartrue($_SESSION['lancheck-edit-file'])) if($_POST['newdef'][$i] == "LC_ALL" && vartrue($_SESSION['lancheck-edit-file']))
{ {
$message .= $notdef_start.'setlocale('.htmlentities($defvar).','.$deflang.');<br />'.$notdef_end; $message .= $notdef_start.'setlocale('.htmlentities($defvar).','.$deflang.');<br />'.$notdef_end;