aboutsummaryrefslogtreecommitdiff
path: root/model/Room.php
diff options
context:
space:
mode:
Diffstat (limited to 'model/Room.php')
-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];