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:
Hypolite Petovan 2022-12-07 22:31:27 -05:00
parent c70d657885
commit b1860d4121
1 changed files with 1 additions and 1 deletions

View File

@ -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);