aboutsummaryrefslogtreecommitdiff
path: root/model/Room.php
diff options
context:
space:
mode:
authorMaZderMind2015-03-31 17:05:25 +0200
committerMaZderMind2015-03-31 17:07:45 +0200
commit8b7ab95ad497852607473468b92e968d180a6ec7 (patch)
tree373207aad8d0cee549c5f3426f29ffd9bcff1c6e /model/Room.php
parentc64155f3b7cde69c69c3a3a2459fc1024371b428 (diff)
Raise 404 when no Stream is selected at all
Diffstat (limited to '')
-rw-r--r--model/Room.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/model/Room.php b/model/Room.php
index 3235016..47f5b26 100644
--- a/model/Room.php
+++ b/model/Room.php
@@ -251,6 +251,9 @@ class Room extends ModelBase
{
$selections = $this->getSelectionNames();
+ if(count($selections) == 0)
+ throw new NotFoundException('No Streams activated');
+
// default page
if(!$selection)
$selection = $selections[0];