X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-mydata.php;h=adbd169537aa0b8ac910311360359708a7a2faf4;hp=17a435539a2faba819d62c536e24445c9687b91c;hb=c2e17d983fcbc0c3bd1dd37908d87c678f0367df;hpb=d49fe31440f5946f23cd2b4044c6e0256640dde4 diff --git a/inc/modules/member/what-mydata.php b/inc/modules/member/what-mydata.php index 17a435539a..adbd169537 100644 --- a/inc/modules/member/what-mydata.php +++ b/inc/modules/member/what-mydata.php @@ -85,19 +85,19 @@ switch ($mode) { // Translate some things $content['gender'] = translateGender($content['gender']); - $content['last_update'] = generateDateTime($content['last_update'], '0'); + $content['last_update'] = generateDateTime($content['last_update'], 0); // How far is last change on his profile away from now? if ((($content['last_update'] + getConfig('profile_lock')) > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) { // You cannot change your account - $content['change'] = loadTemplate('admin_settings_saved', true, "
".sprintf(getMessage('MEMBER_PROFILE_LOCKED'), generateDateTime($content['last_update'] + getConfig('profile_lock'), '0'))."
"); + $content['change'] = loadTemplate('admin_settings_saved', true, "
".sprintf(getMessage('MEMBER_PROFILE_LOCKED'), generateDateTime($content['last_update'] + getConfig('profile_lock'), 0))."
"); } else { // He is allowed to change his profile $content['change'] = loadTemplate('member_mydata_button', true); } - if (strlen($content['birth_day']) == 1) $content['birth_day'] = '0' . $content['birth_day']; - if (strlen($content['birth_month']) == 1) $content['birth_month'] = '0' . $content['birth_month']; + if (strlen($content['birth_day']) == 1) $content['birth_day'] = 0 . $content['birth_day']; + if (strlen($content['birth_month']) == 1) $content['birth_month'] = 0 . $content['birth_month']; switch (getLanguage()) { case 'de': $content['dob'] = $content['birth_day'] . '.' . $content['birth_month'] . '.' . $content['birth_year']; break; @@ -144,7 +144,7 @@ LIMIT 1", // How far is last change on his profile away from now? if (($content['update_check'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) { - $content['update_check'] = generateDateTime($content['update_check'] + getConfig('profile_lock'), '0'); + $content['update_check'] = generateDateTime($content['update_check'] + getConfig('profile_lock'), 0); // You cannot change your account loadTemplate('member_mydata_locked', false, $content); } else { @@ -215,7 +215,7 @@ LIMIT 1", // How far is last change on his profile away from now? if (($content['last_change'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) { - $content['last_change'] = generateDateTime($content['last_change'] + getConfig('profile_lock'), '0'); + $content['last_change'] = generateDateTime($content['last_change'] + getConfig('profile_lock'), 0); // You cannot change your account loadTemplate('member_mydata_locked'); } elseif ((!isEmailValid(postRequestElement('email'))) && (!isAdmin())) {