From 8b7ab95ad497852607473468b92e968d180a6ec7 Mon Sep 17 00:00:00 2001
From: MaZderMind
Date: Tue, 31 Mar 2015 17:05:25 +0200
Subject: Raise 404 when no Stream is selected at all

---
 model/Room.php | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'model')

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];
-- 
cgit v1.2.3