Permalink
Browse files

Fix caching issue with PHP version check - other way didn't work.

  • Loading branch information...
1 parent 2352ab0 commit 09e128da842270516a8ca0f9e3fcbeffd715cfae @benhuson committed Jul 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 includes/event-organiser-event-functions.php
@@ -719,7 +719,7 @@ function eo_get_blog_timezone(){
$timezone = new DateTimeZone($tzstring);
- if ( $timezone->getOffset() !== false )
+ if ( version_compare( PHP_VERSION, '5.2.0', '<=' ) )
wp_cache_set( 'eventorganiser_timezone', $timezone );
}

0 comments on commit 09e128d

Please sign in to comment.