Issue #3467905 by avpaderno: drupal_var_export() initializes a variable that is never used

7.x
Juraj Nemec 2024-12-03 01:08:05 +01:00
parent 482351c6f3
commit 8feaef79c3
No known key found for this signature in database
GPG Key ID: 01EC3E1EECB5B2CA
1 changed files with 0 additions and 1 deletions

View File

@ -35,7 +35,6 @@ function drupal_var_export($var, $prefix = '') {
$output = $var ? 'TRUE' : 'FALSE';
}
elseif (is_string($var)) {
$line_safe_var = str_replace("\n", '\n', $var);
if (strpos($var, "\n") !== FALSE || strpos($var, "'") !== FALSE) {
// If the string contains a line break or a single quote, use the
// double quote export mode. Encode backslash and double quotes and