diff --git a/upgrade.php b/upgrade.php index d08f7439e3..4d67d24f22 100644 --- a/upgrade.php +++ b/upgrade.php @@ -1,9 +1,14 @@ $line) { if ((strlen($line) > 1) && (strpos($line, "#") !== 0)) { - list ($env_key, $env_value) = $env_line = explode('=', $line); + $env_line = explode('=', $line, 2); + if (count($env_line) != 2) { + continue; + } + list ($env_key, $env_value) = $env_line; // The array starts at 0 $show_line_num = $line_num+1;