Check for last-activity value before feeding it to strtotime in Module\NoScrape
- Address https://github.com/friendica/friendica/issues/12011#issuecomment-1340019523
This commit is contained in:
parent
c70d657885
commit
b1860d4121
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class NoScrape extends BaseModule
|
|||
|
||||
// We display the last activity (post or login), reduced to year and week number
|
||||
$last_active = strtotime($owner['last-item']);
|
||||
if ($last_active < strtotime($owner['last-activity'])) {
|
||||
if ($owner['last-activity'] && $last_active < strtotime($owner['last-activity'])) {
|
||||
$last_active = strtotime($owner['last-activity']);
|
||||
}
|
||||
$json_info['last-activity'] = date('o-W', $last_active);
|
||||
|
|
Loading…
Reference in a new issue