Skip to content

Commit b5b1e75

Browse files
botwebirnnr
authored andcommitted
[TASK] Hide LastSearches facet if no history is present
Change-Id: I4f0855e5a353f3f1a3480df2b856abdd42fbe793
1 parent a8121ec commit b5b1e75

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PiResults/LastSearchesCommand.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,13 @@ public function execute() {
6969
return NULL;
7070
}
7171

72+
$lastSearches = $this->getLastSearches();
73+
if(empty($lastSearches)) {
74+
return NULL;
75+
}
76+
7277
$marker = array(
73-
'loop_lastsearches|lastsearch' => $this->getLastSearches()
78+
'loop_lastsearches|lastsearch' => $lastSearches
7479
);
7580

7681
return $marker;

0 commit comments

Comments
 (0)