summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Search.php
diff options
context:
space:
mode:
authorxue <>2006-06-19 02:31:27 +0000
committerxue <>2006-06-19 02:31:27 +0000
commitb59ab2490b1bb82dc1d0b58d89584182b405d0a0 (patch)
treed6770beffd006c092b3211208b686462cd279ab0 /demos/quickstart/protected/pages/Search.php
parent9b918c5b7fa3aac6e077f15dc06c1d8d7185f5aa (diff)
build script update. Fixed #82 and #165.
Diffstat (limited to 'demos/quickstart/protected/pages/Search.php')
-rw-r--r--demos/quickstart/protected/pages/Search.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/demos/quickstart/protected/pages/Search.php b/demos/quickstart/protected/pages/Search.php
index 297d2f50..f1d07ffa 100644
--- a/demos/quickstart/protected/pages/Search.php
+++ b/demos/quickstart/protected/pages/Search.php
@@ -13,13 +13,8 @@ class Search extends TPage
$hits_1 = $quickstart->find($text);
$this->quickstart_results->setDataSource($hits_1);
$this->quickstart_results->dataBind();
-
- $api = $this->getApplication()->getModule("api_search");
- $hits_2 = $api->find($text);
- $this->api_results->setDataSource($hits_2);
- $this->api_results->dataBind();
- $this->emptyResult->setVisible(count($hits_1)+count($hits_2) == 0);
+ $this->emptyResult->setVisible(!count($hits_1));
}
}