From 09c59abf8576f52b40e1787ef3c0204f795ab9f5 Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 31 May 2011 16:17:23 +0000 Subject: Case-insensitive matching in autocompletion (#1487933); replace old string offset syntax --- program/include/main.inc | 18 +++++++++--------- program/steps/mail/autocomplete.inc | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'program') diff --git a/program/include/main.inc b/program/include/main.inc index 98b8bcb46..1ded90270 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -1090,28 +1090,28 @@ function format_date($date, $format=NULL) // an alternative would be to convert the date() format string to fit with strftime() $out = ''; for($i=0; $i 1 && strpos($contact, $search) === false) { + if ($email_cnt > 1 && stripos($contact, $search) === false) { continue; } // when we've got more than one book, we need to skip duplicates -- cgit v1.2.3