From 1433916943cea42ae4c080f352aa676a44ada340 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 25 Mar 2001 07:39:58 +0000 Subject: [PATCH] Add check for default category pref if none is set via dropdown --- addressbook/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addressbook/index.php b/addressbook/index.php index 6a603bb8d9..0b2fbe6e76 100755 --- a/addressbook/index.php +++ b/addressbook/index.php @@ -41,6 +41,10 @@ } } + if (!$cat_id) { + $cat_id = $phpgw_info["user"]["preferences"]["addressbook"]["default_category"]; + } + $extrafields = array( "ophone" => "ophone", "address2" => "address2",