From 3fac21cd315b4f93040c52bafe6a07565c13ee1c Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 27 Nov 2018 08:58:24 -0500 Subject: [PATCH] Don't call empty on a return value --- includes/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/init.php b/includes/init.php index a69a1cb..fbcfbf7 100644 --- a/includes/init.php +++ b/includes/init.php @@ -36,7 +36,7 @@ add_action( 'user_register', function( $user_id ) { add_action( 'pterotype_init', function() { \pterotype\schema\run_migrations(); \pterotype\actors\initialize_actors(); - if ( ! empty( ob_get_contents() ) ) { + if ( ob_get_contents() ) { \error_log( ob_get_contents() ); } } );