diff --git a/public/index.php b/public/index.php index f5f53b89..0210fa83 100644 --- a/public/index.php +++ b/public/index.php @@ -54,6 +54,7 @@ if (is_dir(INCLUDE_DIR . '/pages/')) { } // Set a default action here if no page has been requested +@$_REQUEST['page'] = (is_array($_REQUEST['page']) || !isset($_REQUEST['page'])) ? 'home' : $_REQUEST['page']; if (isset($_REQUEST['page']) && isset($arrPages[$_REQUEST['page']])) { $page = $_REQUEST['page']; } else if (isset($_REQUEST['page']) && ! isset($arrPages[$_REQUEST['page']])) { @@ -72,7 +73,7 @@ if (is_dir(INCLUDE_DIR . '/pages/' . $page)) { } } // Default to empty (nothing) if nothing set or not known -$action = isset($_REQUEST['action']) && isset($arrActions[$_REQUEST['action']]) ? $_REQUEST['action'] : ""; +$action = (isset($_REQUEST['action']) && !is_array($_REQUEST['action'])) && isset($arrActions[$_REQUEST['action']]) ? $_REQUEST['action'] : ""; // Load the page code setting the content for the page OR the page action instead if set if (!empty($action)) { diff --git a/public/templates/mpos/global/breadcrumbs.tpl b/public/templates/mpos/global/breadcrumbs.tpl index 315e912b..ef0f55a4 100644 --- a/public/templates/mpos/global/breadcrumbs.tpl +++ b/public/templates/mpos/global/breadcrumbs.tpl @@ -1,3 +1,5 @@