Skip to content
Snippets Groups Projects
Commit 7c43a8d1 authored by David Siegfried's avatar David Siegfried
Browse files

catch exception, closes #1565

Closes #1565

Merge request studip/studip!1264
parent 168df782
No related branches found
No related tags found
No related merge requests found
...@@ -485,6 +485,7 @@ class RoomSearchWidget extends SidebarWidget ...@@ -485,6 +485,7 @@ class RoomSearchWidget extends SidebarWidget
} }
} }
try {
$this->rooms = RoomManager::findRooms( $this->rooms = RoomManager::findRooms(
$this->selected_criteria['special__room_name']['value'], $this->selected_criteria['special__room_name']['value'],
$this->location_id, $this->location_id,
...@@ -494,6 +495,9 @@ class RoomSearchWidget extends SidebarWidget ...@@ -494,6 +495,9 @@ class RoomSearchWidget extends SidebarWidget
'name ASC, mkdate ASC', 'name ASC, mkdate ASC',
false false
); );
} catch (\InvalidArgumentException $e) {
PageLayout::postError($e->getMessage());
}
} }
public function resetSearch() public function resetSearch()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment