<?php
+use Friendica\App;
+
/**
* @brief Calculate the hash that is needed for the "Friendica" cookie
*
$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);