From: Jakub Vrana Date: Tue, 6 Feb 2018 15:25:58 +0000 (+0100) Subject: Remove unnecessary quotes X-Git-Tag: v4.6.1~32 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=f09d26a51d9425cf92dbffeac05cf7b9288d633a;p=adminer.git Remove unnecessary quotes --- diff --git a/compile.php b/compile.php index 4496047b..5b74e9b3 100755 --- a/compile.php +++ b/compile.php @@ -21,7 +21,7 @@ function remove_lang($match) { $idf = strtr($match[2], array("\\'" => "'", "\\\\" => "\\")); $s = ($translations[$idf] ? $translations[$idf] : $idf); if ($match[3] == ",") { // lang() has parameters - return "$match[1]" . (is_array($s) ? "lang(array('" . implode("', '", array_map('add_apo_slashes', $s)) . "')," : "sprintf('" . add_apo_slashes($s) . "',"); + return $match[1] . (is_array($s) ? "lang(array('" . implode("', '", array_map('add_apo_slashes', $s)) . "')," : "sprintf('" . add_apo_slashes($s) . "',"); } return ($match[1] && $match[4] ? $s : "$match[1]'" . add_apo_slashes($s) . "'$match[4]"); }