diff --git a/out/out.Search.php b/out/out.Search.php index fefd4303f..bf80729bf 100644 --- a/out/out.Search.php +++ b/out/out.Search.php @@ -49,8 +49,6 @@ if (isset($_GET["navBar"])) { } } -$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings); - $includecontent = false; if (isset($_GET["includecontent"]) && $_GET["includecontent"]) $includecontent = true; diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index 0415b0864..fcf6955ed 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -240,20 +240,6 @@ function typeahead() { /* {{{ */ $reception = $this->params['reception']; $showsinglesearchhit = $this->params['showsinglesearchhit']; - if($showsinglesearchhit && count($entries) == 1) { - $entry = $entries[0]; - if($entry->isType('document')) { - header('Location: ../out/out.ViewDocument.php?documentid='.$entry->getID()); - exit; - } elseif($entry->isType('folder')) { - header('Location: ../out/out.ViewFolder.php?folderid='.$entry->getID()); - exit; - } - } - -// if ($pageNumber != 'all') -// $entries = array_slice($entries, ($pageNumber-1)*$limit, $limit); - $this->htmlStartPage(getMLText("search_results")); $this->globalNavigation(); $this->contentStart();