From 9355b2486c1c179dc90d23339eefcbbfde46a895 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 17 Sep 2001 02:35:01 +0000 Subject: [PATCH] Fix cat_id setting - again --- addressbook/inc/class.boaddressbook.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.boaddressbook.inc.php b/addressbook/inc/class.boaddressbook.inc.php index 7c3833e4bb..3bf1a40af6 100644 --- a/addressbook/inc/class.boaddressbook.inc.php +++ b/addressbook/inc/class.boaddressbook.inc.php @@ -95,7 +95,9 @@ { $this->query = $query; } - if(isset($fcat_id) || $fcat_id == '0' || $fcat_id == 0) { $this->cat_id = $fcat_id; } + + if(isset($fcat_id)) { $this->cat_id = $fcat_id; } + if($fcat_id == '0' || $fcat_id == 0 || $fcat_id == '') { $this->cat_id = 0; } if(isset($sort)) { $this->sort = $sort; } if(isset($order)) { $this->order = $order; } if(isset($filter)) { $this->filter = $filter; }