Hmmm, sounds like there is nothing "Issued Already" (based on the handling between lines 301 to 309), so the array was never populated?
Anyway, try changing this: (line 289)
PHP Code:
if ($SelectedWO != 'Preview') { // It is a real order
$ErrMsg = _('There was a problem retrieving the line details for order number') . ' ' . $SelectedWO . ' ' . _('from the database');
...to this:
PHP Code:
if ($SelectedWO != 'Preview') { // It is a real order
$IssuedAlreadyRow = array(); // add this
$ErrMsg = _('There was a problem retrieving the line details for order number') . ' ' . $SelectedWO . ' ' . _('from the database');
That will at least quell the error.