From 5f162ec215595b9e2431360360f5801d0ab65f2b Mon Sep 17 00:00:00 2001 From: Justin Foell Date: Fri, 29 Sep 2017 09:37:14 -0500 Subject: [PATCH] Revert elvis conditional for PHP 5.2 compatibility --- lib/LatestMapWidget.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/LatestMapWidget.class.php b/lib/LatestMapWidget.class.php index d81d1ff..2ccb33b 100644 --- a/lib/LatestMapWidget.class.php +++ b/lib/LatestMapWidget.class.php @@ -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;