You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If an array is used to build up the actions to be performed, and the array is empty or the variable is null, draw_actions_dropdown() will fail and cause a backtrace.
To Reproduce
Steps to reproduce the behavior:
include 'lib/html.php'
call draw_actions_dropdown(NULL)
See error
Expected behavior
If there are no actions to be performed, or the variable isn't primed, draw_actions_dropdown() should simply exit without error.
This was caused by a variable being used globally, that wasn't properly registering as a global variable. As such, when the edit form was being displayed, the above stack trace appeared because the global variable was thought to be empty.
The text was updated successfully, but these errors were encountered:
netniV
changed the title
function 'draw_actions_dropdown()' does not correctly handle $actions_array being empty
When attempting to display actions that can be taken, having no actions caused error
Feb 26, 2019
Describe the bug
If an array is used to build up the actions to be performed, and the array is empty or the variable is null, draw_actions_dropdown() will fail and cause a backtrace.
To Reproduce
Steps to reproduce the behavior:
draw_actions_dropdown(NULL)
Expected behavior
If there are no actions to be performed, or the variable isn't primed, draw_actions_dropdown() should simply exit without error.
Additional context
This was caused by a variable being used globally, that wasn't properly registering as a global variable. As such, when the edit form was being displayed, the above stack trace appeared because the global variable was thought to be empty.
The text was updated successfully, but these errors were encountered: