diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/search/entity_list.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/search/entity_list.php b/views/default/search/entity_list.php index 4fc23c2ba..7f9018b2f 100644 --- a/views/default/search/entity_list.php +++ b/views/default/search/entity_list.php @@ -8,8 +8,14 @@ $baseurl = $vars['baseurl'];
$context = $vars['context'];
$viewtype = $vars['viewtype'];
+
+ if (isset($vars['viewtypetoggle'])) {
+ $viewtypetoggle = $vars['viewtypetoggle'];
+ } else {
+ $viewtypetoggle = true;
+ }
- if ($context == "search" && $count > 0) {
+ if ($context == "search" && $count > 0 && $viewtypetoggle) {
$nav .= elgg_view("navigation/viewtype",array(
'baseurl' => $baseurl,
|