// 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, "<div class=\"member_failed\">".sprintf(getMessage('MEMBER_PROFILE_LOCKED'), generateDateTime($content['last_update'] + getConfig('profile_lock'), '0'))."</div>");
+ $content['change'] = loadTemplate('admin_settings_saved', true, "<div class=\"member_failed\">".sprintf(getMessage('MEMBER_PROFILE_LOCKED'), generateDateTime($content['last_update'] + getConfig('profile_lock'), 0))."</div>");
} 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;
// 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 {
// 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())) {