From 132cc41e5ad63df50b7098e294abf1e8ae9c2337 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 18 Jul 2001 04:55:31 +0000 Subject: [PATCH] If the passed tid = ' ', etc, set it to 'n' --- phpgwapi/inc/class.contacts_sql.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpgwapi/inc/class.contacts_sql.inc.php b/phpgwapi/inc/class.contacts_sql.inc.php index e8c087e1dd..7ba5befae4 100644 --- a/phpgwapi/inc/class.contacts_sql.inc.php +++ b/phpgwapi/inc/class.contacts_sql.inc.php @@ -551,6 +551,12 @@ { list($stock_fields,$stock_fieldnames,$extra_fields) = $this->split_stock_and_extras($fields); + $fields['tid'] = trim($fields['tid']); + if(empty($fields['tid'])) + { + $fields['tid'] = 'n'; + } + if ($fields['lid']) { $lid[0] = 'lid,';