diff --git a/Helloworld.class.php b/Helloworld.class.php index 52a98d0..5832a83 100644 --- a/Helloworld.class.php +++ b/Helloworld.class.php @@ -276,7 +276,7 @@ public function showPage() $subhead = _('Item List'); $content = load_view(__DIR__ . '/views/grid.php'); - if ('form' == $_REQUEST['view']) { + if (isset($_REQUEST['view']) && 'form' == $_REQUEST['view']) { $subhead = _('Add Item'); $content = load_view(__DIR__ . '/views/form.php'); if (isset($_REQUEST['id']) && !empty($_REQUEST['id'])) { diff --git a/module.xml b/module.xml index 4c17e8c..a018d93 100644 --- a/module.xml +++ b/module.xml @@ -6,7 +6,7 @@ Development James Finstrom http://wiki.freepbx.org/pages/viewpage.action?pageId=19498386 - GPL + GPL http://www.gnu.org/licenses/gpl-2.0.txt diff --git a/views/form.php b/views/form.php index 7635441..d35f52c 100644 --- a/views/form.php +++ b/views/form.php @@ -1,5 +1,5 @@ - - + +
@@ -11,7 +11,7 @@
- +
@@ -35,8 +35,7 @@
- +
@@ -49,4 +48,4 @@ - \ No newline at end of file +