Skip to content

Commit

Permalink
Fatal error in dashboard
Browse files Browse the repository at this point in the history
Team parameters are changed from 2 strings to 5. Value in foreach loop is now associative array and passing it as a second parameter was throwing fatal error because it was expecting string.
  • Loading branch information
zzap committed Apr 12, 2019
1 parent 52bdf45 commit f334954
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ public function fields() {
$values = $this->get_values();
$teams = Plugin::get_form_config( 'teams.php' );

foreach ( $teams as $id => $name ) {
foreach ( $teams as $id => $team ) {

$team = new Team( $id, $name );
$team = new Team( $id, $team['name'], $team['description'], $team['icon'], $team['url'] );
$team_id = $team->get_id();

printf(
Expand Down

0 comments on commit f334954

Please sign in to comment.