From b1860d412119ba6a3e4d3e5389651017f741e09a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 7 Dec 2022 22:31:27 -0500 Subject: [PATCH] Check for last-activity value before feeding it to strtotime in Module\NoScrape - Address https://github.com/friendica/friendica/issues/12011#issuecomment-1340019523 --- src/Module/NoScrape.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/NoScrape.php b/src/Module/NoScrape.php index 8e5850ac0b..56f31f2dcf 100644 --- a/src/Module/NoScrape.php +++ b/src/Module/NoScrape.php @@ -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);