AND trans.tran_date=".db_escape($date);
$result = db_query($sql,"No transactions were returned");
$row = db_fetch_row($result);
- if (isset($row[0]))
- return $row[0];
- else
- return '';
+ return is_array($row) ? $row[0] : '';
}
//----------------------------------------------------------------------------------------------------
else
$itm = $item;
- $cols = array(0, 60, 180, 225, 275, 400, 420, 465, 520);
+ $cols = array(0, 60, 180, 230, 275, 400, 420, 465, 520);
$headers = array(_('Item'), _('Description'), _('Date'), _('#'), _('Supplier'), _('Qty'), _('Unit Price'), _('Location'));
if ($fromsupp != '')