aboutsummaryrefslogtreecommitdiff
path: root/services/searchhistoryservice.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-04-24 08:48:57 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-04-24 08:48:57 +0000
commit791f1492478e4497a554c2a3a1c8737c36d71821 (patch)
tree4037e33a1d69a7a9170d88666e0752d900c904c4 /services/searchhistoryservice.php
parent3b79d6b9cc75eaf2b54f6d41843a313b13395c8d (diff)
downloadsemanticscuttle-791f1492478e4497a554c2a3a1c8737c36d71821.tar.gz
semanticscuttle-791f1492478e4497a554c2a3a1c8737c36d71821.tar.bz2
Interface design: improve tags presentation, menu box, popup size, redirection after adding a bookmark, RSS link position
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@118 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services/searchhistoryservice.php')
-rw-r--r--services/searchhistoryservice.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/searchhistoryservice.php b/services/searchhistoryservice.php
index 7389906..bf678cf 100644
--- a/services/searchhistoryservice.php
+++ b/services/searchhistoryservice.php
@@ -43,7 +43,7 @@ class SearchHistoryService {
}
}
- function getAllSearches($range = NULL, $uId = NULL, $nb = NULL, $start = NULL, $distinct = false) {
+ function getAllSearches($range = NULL, $uId = NULL, $nb = NULL, $start = NULL, $distinct = false, $withResults = false) {
$sql = 'SELECT DISTINCT(shTerms), shId, shRange, shNbResults, shDatetime, uId';
$sql.= ' FROM '. $this->getTableName();
$sql.= ' WHERE 1=1';
@@ -55,6 +55,9 @@ class SearchHistoryService {
if($uId != NULL) {
$sql.= ' AND uId = '.$uId;
}
+ if($withResults = true) {
+ $sql.= ' AND shNbResults > 0';
+ }
if($distinct) {
$sql.= ' GROUP BY shTerms';
}