summaryrefslogtreecommitdiff
path: root/includes/lookup_contact.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/lookup_contact.php')
-rw-r--r--includes/lookup_contact.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/lookup_contact.php b/includes/lookup_contact.php
index e477fb9..098bca1 100644
--- a/includes/lookup_contact.php
+++ b/includes/lookup_contact.php
@@ -31,7 +31,7 @@ $rows = $gBitDb->getArray(
(SELECT FIRST 1 sx.xkey FROM ".BIT_DB_PREFIX."liberty_xref sx
WHERE sx.content_id=lc.content_id AND sx.item='SCREF') AS scref
FROM ".BIT_DB_PREFIX."liberty_content lc
- WHERE lc.content_type_guid='contact'
+ WHERE lc.content_type_guid IN ('contactperson','contactbusiness')
AND (LOWER(lc.title) LIKE ? OR EXISTS (
SELECT 1 FROM ".BIT_DB_PREFIX."liberty_xref sx
WHERE sx.content_id=lc.content_id AND sx.item='SCREF' AND LOWER(sx.xkey) LIKE ?