Skip to content

Commit 7cc34a4

Browse files
committed
minor correction to include unit var in comparison check for selected option
1 parent 7e40d94 commit 7cc34a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

volume.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<?php
6464
foreach ($volumeUnits as $unit) {
6565
echo "<option value=\"" . camelCase($unit) . "\"";
66-
if ($fromUnit == 'cubeInches') {
66+
if ($fromUnit == $unit) {
6767
{
6868
echo " selected";
6969
}
@@ -81,7 +81,7 @@
8181
<?php
8282
foreach ($volumeUnits as $unit) {
8383
echo "<option value=\"" . camelCase($unit) . "\"";
84-
if ($toUnit == 'cubeInches') {
84+
if ($toUnit == $unit) {
8585
{
8686
echo " selected";
8787
}

0 commit comments

Comments
 (0)