Revert elvis conditional for PHP 5.2 compatibility

This commit is contained in:
Justin Foell
2017-09-29 09:37:14 -05:00
parent 4f696b8c19
commit 5f162ec215
+1 -1
View File
@@ -72,7 +72,7 @@ class WPStrava_LatestMapWidget extends WP_Widget {
$ride_transient = get_transient( 'strava_latest_map_activity_' . $athlete_token );
$ride_option = get_option( 'strava_latest_map_activity_' . $athlete_token );
$ride = $ride_transient ?: null;
$ride = $ride_transient ? $ride_transient : null;
if ( ! $ride ) {
$strava_rides = WPStrava::get_instance()->rides;