From 6082c58be2bdf28d1f90a052b197f0e1f4f16a6f Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 8 Dec 2009 16:13:32 -0700 Subject: [PATCH] If search string not found at all, keep it in the field --- imp/lib/Ui/Compose.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imp/lib/Ui/Compose.php b/imp/lib/Ui/Compose.php index 6c349c9e9..e3e0af87e 100644 --- a/imp/lib/Ui/Compose.php +++ b/imp/lib/Ui/Compose.php @@ -47,6 +47,10 @@ class IMP_Ui_Compose if (count($res) == 1) { array_push($addr_list, reset($res)); return implode(', ', $addr_list); + } elseif (!count($res)) { + $GLOBALS['notification']->push(sprintf(_("Search for \"%s\" failed: no address found."), $search), 'horde.warning'); + array_push($addr_list, $search); + return implode(', ', $addr_list); } $GLOBALS['notification']->push(_("Ambiguous address found."), 'horde.warning'); -- 2.11.0