From 4d1f6cf8433958eb851056984a8937c1b275eedd Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 30 Mar 2001 04:02:38 +0000 Subject: [PATCH] Be sure not to select a cat if cat_id empty --- addressbook/export.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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);