Skip to content

Commit df18a82

Browse files
author
Jeffrey Lensen
committed
Fix for error about missing option_values variable
1 parent 1f7ddea commit df18a82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

functions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ function print_dropdown_menus($options, $choice, $default) {
2323
if ( $default != "" ) {
2424
$option_values = " <option value=\"\">$default</option>\n";
2525
}
26+
else {
27+
$option_values = "";
28+
}
2629
foreach ($options as $option) {
2730
if ($option == $choice) {
2831
$selected = "selected=\"selected\"";

0 commit comments

Comments
 (0)