ge_zhiyuan
04-08-2020, 10:04 PM
file InternalStockRequest.php, line 209 and line 237:
variable $myrow while in the while-loop this variable name is $MyRow.
cannot upload png-file to show this bug.
should be revised to:
variable $myrow while in the while-loop this variable name is $MyRow.
cannot upload png-file to show this bug.
PHP Code:
while ($myrow=DB_fetch_array($result)){
if (isset($_SESSION['Request']->Location) AND $_SESSION['Request']->Location==$myrow['loccode']){
echo '<option selected value="', $MyRow['loccode'], '">', $MyRow['loccode'], ' - ', htmlspecialchars($MyRow['locationname'], ENT_QUOTES,'UTF-8'), '</option>';
} else {
echo '<option value="', $MyRow['loccode'], '">', $MyRow['loccode'], ' - ', htmlspecialchars($MyRow['locationname'], ENT_QUOTES,'UTF-8'), '</option>';
}
}
should be revised to:
PHP Code:
while ($MyRow=DB_fetch_array($result)){
if (isset($_SESSION['Request']->Location) AND $_SESSION['Request']->Location==$myrow['loccode']){
echo '<option selected value="', $MyRow['loccode'], '">', $MyRow['loccode'], ' - ', htmlspecialchars($MyRow['locationname'], ENT_QUOTES,'UTF-8'), '</option>';
} else {
echo '<option value="', $MyRow['loccode'], '">', $MyRow['loccode'], ' - ', htmlspecialchars($MyRow['locationname'], ENT_QUOTES,'UTF-8'), '</option>';
}
}