Project

General

Profile

Actions

Bug #7831

closed

$_menus initialized as null instead of array

Added by krileon almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Start date:
31 January 2020
Due date:
% Done:

100%

Estimated time:

Description

If there are no menu items and $_PLUGINS->getMenus() is called it responds with null instead of empty array. phpdoc has this as strictly array and is treated as such throughout usages. If menu parsing is ran in CB Menu with a null response errors will be thrown when count is called on null.

https://www.joomlapolis.com/forum/255-developer-members-support/242067-debug-error-cb-menu-php#316430

Actions

Also available in: Atom PDF