fix problem with search text hang if no text entered

This commit is contained in:
servertude
2008-05-18 06:32:35 +00:00
parent d39468a83b
commit 74c93bc07d

View File

@@ -82,7 +82,7 @@ else if ("Search".equals(who))
{
Frame f = context.get("/");
String txt = f.popupQuestion("Search", "Enter text to search for:");
if (txt != null)
if (txt != null && txt.trim().length()>0)
{
args().put("searchText", txt);
script("searchText", args());