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 #1

Updated by krileon almost 5 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Fixed in MR !1525

Actions #2

Updated by beat over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF