Skip to content
Snippets Groups Projects
Commit 2bc215f7 authored by Beatrycze Volk's avatar Beatrycze Volk
Browse files

Chechk if the request parameters exist before displaying result list

parent 567c4966
Branches
Tags
No related merge requests found
...@@ -120,7 +120,7 @@ class RecommenderController extends AbstractController ...@@ -120,7 +120,7 @@ class RecommenderController extends AbstractController
$this->logger->error('Request error: '.$e->getMessage()); $this->logger->error('Request error: '.$e->getMessage());
$this->view->assign('error', $e->getMessage()); $this->view->assign('error', $e->getMessage());
} }
} else if (!empty($resultList)) { } else if (!empty($resultList) && $this->existRequestParameters()) {
$this->results = $resultList; $this->results = $resultList;
$this->assignViewVariables(); $this->assignViewVariables();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment