Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Updates to support multiple sites.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Dec 10, 2014
1 parent acaf577 commit 2fc213d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/services/ExtensibleSearchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function getSuggestions($term, $pageID = 0, $limit = 5, $approved = true)
// Make sure the current user has appropriate permission.

$pageID = (int)$pageID;
if(ExtensibleSearchPage::get_by_id('ExtensibleSearchPage', $pageID)->canView()) {
if(($page = ExtensibleSearchPage::get_by_id('ExtensibleSearchPage', $pageID)) && $page->canView()) {

// Retrieve the search suggestions.

Expand Down

0 comments on commit 2fc213d

Please sign in to comment.