Fix array indices on map widget

This commit is contained in:
Justin Foell
2018-01-26 14:43:34 -06:00
parent 6bf0ad24c7
commit ba4a925437
+3 -3
View File
@@ -120,15 +120,15 @@ class WPStrava_LatestMapWidget extends WP_Widget {
}
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'];
}
}