]> git.mxchange.org Git - friendica.git/commitdiff
Some standards
authorMichael <heluecht@pirati.ca>
Sat, 18 Mar 2017 12:13:43 +0000 (12:13 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 18 Mar 2017 12:13:43 +0000 (12:13 +0000)
include/Contact.php
include/datetime.php
include/dfrn.php
include/security.php
mod/contacts.php

index 1e393895fb73e711648cc58210cff013967d55f7..fc9f660f1377e81aba7ae63f274f9dff1a418302 100644 (file)
@@ -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'])
index fd60f5fd96f242c6ba799c697f56942edc33f192..9e1d4b55c9ba622c4242ac5db3f31c3721e12639 100644 (file)
@@ -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'));
index de64c37d67e37f45d6ffa6586bf76a514d81c2b5..25f8c9358e2047bd324fe1081b72360bf151c3f4 100644 (file)
@@ -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);
index a9d2f83de885f2588ed0b3ca93d2516da33754c2..05371f71ca55d1a44559480ffc2c350197cc3add 100644 (file)
@@ -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);
index 5fdcb7036debc40a7e520332fe3b00e39e58941a..0569c8ca4ecaac996e25a4951a37c92f0f7990d1 100644 (file)
@@ -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') : '');