Skip to content

Commit

Permalink
Fix array indices on map widget
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfoell committed Jan 26, 2018
1 parent 6bf0ad2 commit ba4a925
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/LatestMapWidget.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ public function widget( $args, $instance ) {
}

if ( $activity ) {
echo $args['$before_widget'];
echo $args['before_widget'];
if ( $title ) {
echo $args['$before_title'] . $title . $args['$after_title'];
echo $args['before_title'] . $title . $args['after_title'];
}

echo "<a title='{$activity->name}' href='http://app.strava.com/activities/{$activity->id}'>";
echo $this->get_static_image( $athlete_token, $activity, $build_new );
echo '</a>';
echo $args['$after_widget'];
echo $args['after_widget'];
}
}

Expand Down

0 comments on commit ba4a925

Please sign in to comment.