From 2962b0e7e4f2ac9d0b0549fce1b62a634170fa46 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 25 Dec 2012 15:12:40 -0500 Subject: [PATCH] Redirect to listing if student wants to start a video but there is no running meeting - refs #5802 BT#5272 --- plugin/bbb/start.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/bbb/start.php b/plugin/bbb/start.php index e34c53a487..32d7106204 100644 --- a/plugin/bbb/start.php +++ b/plugin/bbb/start.php @@ -36,6 +36,10 @@ if ($bbb->plugin_enabled) { $url = $bbb->create_meeting($meeting_params); header('location: '.$url); exit; + } else { + $url = 'listing.php'; + header('location: '.$url); + exit; } } } else { @@ -50,4 +54,4 @@ if ($bbb->plugin_enabled) { $message = Display::return_message(get_lang('ServerIsNotConfigured'), 'warning'); } $tpl->assign('message', $message); -$tpl->display_one_col_template(); \ No newline at end of file +$tpl->display_one_col_template();