From 791f1492478e4497a554c2a3a1c8737c36d71821 Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 24 Apr 2008 08:48:57 +0000 Subject: 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 --- services/searchhistoryservice.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'services/searchhistoryservice.php') 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'; } -- cgit v1.2.3-54-g00ecf