diff --git a/presentation/lookAndFeel/knowledgeTree/search/simpleSearch.php b/presentation/lookAndFeel/knowledgeTree/search/simpleSearch.php index 1e08d94..5debce1 100644 --- a/presentation/lookAndFeel/knowledgeTree/search/simpleSearch.php +++ b/presentation/lookAndFeel/knowledgeTree/search/simpleSearch.php @@ -56,6 +56,12 @@ class SimpleSearchDispatcher extends KTStandardDispatcher { function do_main() { + $aErrorOptions = array( + "message" => "Please provide a search term", + ); + $searchable_text = KTUtil::arrayGet($_REQUEST, "fSearchableText"); + $this->oValidator->notEmpty($searchable_text, $aErrorOptions); + $collection = new DocumentCollection; $this->browseType = "Folder"; @@ -68,8 +74,6 @@ class SimpleSearchDispatcher extends KTStandardDispatcher { $collection->addColumn(new DateColumn("Last Modified","modified", "getLastModifiedDate")); $collection->addColumn(new UserColumn('Creator','creator_id','getCreatorID')); - $searchable_text = KTUtil::arrayGet($_REQUEST, "fSearchableText"); - $batchPage = (int) KTUtil::arrayGet($_REQUEST, "page", 0); $batchSize = 20;