Check for presence of $config['menu'] before trying to create a menu

This commit is contained in:
Daniel Saunders 2018-11-01 21:22:28 -04:00
parent 209ba201b6
commit f7af6bbdf7

View File

@ -22,6 +22,8 @@ function format_bytes($size) {
function createMenu($mod=false) {
global $config;
if (!array_key_exists('menu', $config)) return [];
$xboards = listBoards();
$boards = [];
$menu = [];