Skip to content

Commit

Permalink
Fix php8 error in function.php
Browse files Browse the repository at this point in the history
I got the message:
PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
 in /usr/share/ganglia-webfrontend/functions.php on line 732

This messages is likely new with php7.3. Will be an error with PHP8.
For details see https://wiki.php.net/rfc/continue_on_switch_deprecation

This in one small step to get ready for php8. See ganglia#361
  • Loading branch information
jh23453 authored Mar 6, 2022
1 parent 3d707eb commit b0c1f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ function get_view_graph_elements($view) {
case "standard":
// Does view have any items/graphs defined
if ( count($view['items']) == 0 ) {
continue;
break;
// print "No graphs defined for this view. Please add some";
} else {
// Loop through graph items
Expand Down

0 comments on commit b0c1f80

Please sign in to comment.