1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57: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

@@ -1049,7 +1049,7 @@ class lancheck
function write_lanfile($lan='') function write_lanfile($lan='')
{ {
if(!$lan){ return; } if(!$lan){ return; }
global $ns; global $ns;
unset($input); unset($input);
@@ -1130,6 +1130,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']))
{ {