Be sure not to select a cat if cat_id empty

This commit is contained in:
Miles Lott 2001-03-30 04:02:38 +00:00
parent 63f2065f03
commit 4d1f6cf843

View File

@ -95,7 +95,14 @@
$this->qfields = $this->stock_contact_fields;# + $extrafields;# + $customfields;
}
$buffer = $this->export_start_file($buffer,$cat_id);
if (!empty($cat_id))
{
$buffer = $this->export_start_file($buffer,$cat_id);
}
else
{
$buffer = $this->export_start_file($buffer);
}
for ($i=0;$i<count($this->ids);$i++) {
$buffer = $this->export_start_record($buffer);