From 0e5253a44cf668770dbf2904bead70e659eefc69 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Fri, 2 Apr 2010 22:28:31 -0400 Subject: [PATCH] Shout: direct to wizard with no menus present --- shout/dialplan.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shout/dialplan.php b/shout/dialplan.php index ed242a28e..42041e679 100644 --- a/shout/dialplan.php +++ b/shout/dialplan.php @@ -19,6 +19,9 @@ $menu = Horde_Util::getFormData('menu'); $curaccount = $_SESSION['shout']['curaccount']; $menus = $shout->storage->getMenus($curaccount['code']); +if (empty($menus)) { + header('Location: ' . Horde::applicationUrl('wizard.php', true)); +} switch($action) { case 'add': -- 2.11.0