Skip to content

Commit

Permalink
Resolving issue #2456
Browse files Browse the repository at this point in the history
When attempting to display actions that can be taken, having no actions caused error
  • Loading branch information
netniV committed Feb 26, 2019
1 parent 6c02860 commit ff0bb7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Cacti CHANGELOG
1.2.3
-issue#2452: Missing 'getSNMPQueries()' function when calling add_data_query.php
-issue#2453: Cannot retrieve list of snmp values via CLI
-issue#2456: When attempting to display actions that can be taken, having no actions caused error

1.2.2
-issue#599: Aggregate graph templates assume AVG consolidation function
Expand Down
4 changes: 4 additions & 0 deletions lib/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,10 @@ function draw_menu($user_menu = "") {
function draw_actions_dropdown($actions_array, $delete_action = 1) {
global $config;

if ($actions_array === NULL || cacti_sizeof($actions_array) == 0) {
return;
}

if (!isset($actions_array[0])) {
$my_actions[0] = __('Choose an action');
$my_actions += $actions_array;
Expand Down

0 comments on commit ff0bb7b

Please sign in to comment.