From: Michael M Slusarz Date: Tue, 8 Dec 2009 23:13:32 +0000 (-0700) Subject: If search string not found at all, keep it in the field X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6082c58be2bdf28d1f90a052b197f0e1f4f16a6f;p=horde.git If search string not found at all, keep it in the field --- 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');