If the passed tid = ' ', etc, set it to 'n'

This commit is contained in:
Miles Lott 2001-07-18 04:55:31 +00:00
parent 088010eee3
commit 132cc41e5a

View File

@ -551,6 +551,12 @@
{
list($stock_fields,$stock_fieldnames,$extra_fields) = $this->split_stock_and_extras($fields);
$fields['tid'] = trim($fields['tid']);
if(empty($fields['tid']))
{
$fields['tid'] = 'n';
}
if ($fields['lid'])
{
$lid[0] = 'lid,';