Commit 9a2b12b8 authored by YaroslavLushnikov's avatar YaroslavLushnikov Committed by Rick Hawkins
Browse files

Issue #3018123 by zvse: Empty value appears on the options list

parent ce4e5232
......@@ -1337,7 +1337,7 @@ Title Desc|Z -> A</pre> Leave the replacement text blank to remove an option alt
foreach ($lines as $line) {
list($search, $replace) = explode('|', $line);
if (!empty($search)) {
$rewrites[$search] = $replace;
$rewrites[$search] = trim($replace);
if ($reorder) {
// Reorder options in the order they are specified in rewrites.
// Collect the keys to use later.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment