diff --git a/addressbook/export.php b/addressbook/export.php index 5232397e2a..4b7e296154 100644 --- a/addressbook/export.php +++ b/addressbook/export.php @@ -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;$iids);$i++) { $buffer = $this->export_start_record($buffer);