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,15 +485,19 @@ class RoomSearchWidget extends SidebarWidget
}
}
$this->rooms = RoomManager::findRooms(
$this->selected_criteria['special__room_name']['value'],
$this->location_id,
$this->building_id,
$properties,
$time_intervals,
'name ASC, mkdate ASC',
false
);
try {
$this->rooms = RoomManager::findRooms(
$this->selected_criteria['special__room_name']['value'],
$this->location_id,
$this->building_id,
$properties,
$time_intervals,
'name ASC, mkdate ASC',
false
);
} catch (\InvalidArgumentException $e) {
PageLayout::postError($e->getMessage());
}
}
public function resetSearch()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment