mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Some standards
This commit is contained in:
parent
222550e784
commit
1a436264cd
5 changed files with 5 additions and 5 deletions
|
@ -127,7 +127,7 @@ function mark_for_death($contact) {
|
|||
if($contact['archive'])
|
||||
return;
|
||||
|
||||
if($contact['term-date'] <= NULL_DATE) {
|
||||
if ($contact['term-date'] <= NULL_DATE) {
|
||||
q("UPDATE `contact` SET `term-date` = '%s' WHERE `id` = %d",
|
||||
dbesc(datetime_convert()),
|
||||
intval($contact['id'])
|
||||
|
|
|
@ -171,7 +171,7 @@ function dob($dob) {
|
|||
$f = get_config('system','birthday_input_format');
|
||||
if(! $f)
|
||||
$f = 'ymd';
|
||||
if($dob == '0000-00-00')
|
||||
if($dob === '0000-00-00')
|
||||
$value = '';
|
||||
else
|
||||
$value = (($year) ? datetime_convert('UTC','UTC',$dob,'Y-m-d') : datetime_convert('UTC','UTC',$dob,'m-d'));
|
||||
|
|
|
@ -1094,7 +1094,7 @@ class dfrn {
|
|||
return 3;
|
||||
}
|
||||
|
||||
if($contact['term-date'] > NULL_DATE) {
|
||||
if ($contact['term-date'] > NULL_DATE) {
|
||||
logger("dfrn_deliver: $url back from the dead - removing mark for death");
|
||||
require_once('include/Contact.php');
|
||||
unmark_for_death($contact);
|
||||
|
|
|
@ -55,7 +55,7 @@ function authenticate_success($user_record, $login_initial = false, $interactive
|
|||
$a->user = $user_record;
|
||||
|
||||
if($interactive) {
|
||||
if($a->user['login_date'] <= NULL_DATE) {
|
||||
if ($a->user['login_date'] <= NULL_DATE) {
|
||||
$_SESSION['return_url'] = 'profile_photo/new';
|
||||
$a->module = 'profile_photo';
|
||||
info( t("Welcome ") . $a->user['username'] . EOL);
|
||||
|
|
|
@ -538,7 +538,7 @@ function contacts_content(App $a) {
|
|||
? t('Never')
|
||||
: datetime_convert('UTC',date_default_timezone_get(),$contact['last-update'],'D, j M Y, g:i A'));
|
||||
|
||||
if($contact['last-update'] > NULL_DATE)
|
||||
if ($contact['last-update'] > NULL_DATE)
|
||||
$last_update .= ' ' . (($contact['last-update'] <= $contact['success_update']) ? t("\x28Update was successful\x29") : t("\x28Update was not successful\x29"));
|
||||
|
||||
$lblsuggest = (($contact['network'] === NETWORK_DFRN) ? t('Suggest friends') : '');
|
||||
|
|
Loading…
Reference in a new issue