mirror of
https://github.com/Circlepuller/Tinyboard.git
synced 2025-01-29 11:00:44 +01:00
Check for presence of $config['menu'] before trying to create a menu
This commit is contained in:
parent
209ba201b6
commit
f7af6bbdf7
@ -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 = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user