]> git.mxchange.org Git - friendica.git/blobdiff - include/security.php
Changed documentation
[friendica.git] / include / security.php
index afb37a72d8ac0e0d456cef00898e10385ec292e8..09ac03c35e9cbfe2cfd64c96b04bda169b90ccf8 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use Friendica\App;
+
 /**
  * @brief Calculate the hash that is needed for the "Friendica" cookie
  *
@@ -55,7 +57,7 @@ function authenticate_success($user_record, $login_initial = false, $interactive
        $a->user = $user_record;
 
        if($interactive) {
-               if($a->user['login_date'] === '0000-00-00 00:00:00') {
+               if ($a->user['login_date'] <= NULL_DATE) {
                        $_SESSION['return_url'] = 'profile_photo/new';
                        $a->module = 'profile_photo';
                        info( t("Welcome ") . $a->user['username'] . EOL);