- fixed small notice;

- fixed issue with download files with opened PHP buffers;
This commit is contained in:
nikitozzzzzzz
2018-10-18 10:09:29 +03:00
parent 17fdaaefea
commit 4409ecebd1
2 changed files with 14 additions and 3 deletions
+2 -3
View File
@@ -70,10 +70,9 @@ if ( ! class_exists( 'um\core\GDPR' ) ) {
* @return mixed
*/
function email_registration_data( $submitted ) {
$timestamp = ! empty( $submitted['timestamp'] ) ? $submitted['timestamp'] : $submitted['use_gdpr_agreement'];
if ( ! empty( $submitted['use_gdpr_agreement'] ) ) {
$timestamp = ! empty( $submitted['timestamp'] ) ? $submitted['timestamp'] : $submitted['use_gdpr_agreement'];
$submitted['GDPR Applied'] = date( "d M Y H:i", $timestamp );
unset( $submitted['use_gdpr_agreement'] );
}