diff --git a/src/Forum/Actions/IndexAction.php b/src/Forum/Actions/IndexAction.php index f7d1cef2a..3894f118d 100644 --- a/src/Forum/Actions/IndexAction.php +++ b/src/Forum/Actions/IndexAction.php @@ -29,7 +29,7 @@ class IndexAction extends ClientAction $q = array_pull($queryParams, 'q'); $params = [ - 'sort' => $sort ? $this->sortMap[$sort] : '', + 'sort' => $sort && isset($this->sortMap[$sort]) ? $this->sortMap[$sort] : '', 'filter' => ['q' => $q] ];