From: Hypolite Petovan Date: Thu, 8 Dec 2022 03:31:27 +0000 (-0500) Subject: Check for last-activity value before feeding it to strtotime in Module\NoScrape X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b1860d412119ba6a3e4d3e5389651017f741e09a;p=friendica.git Check for last-activity value before feeding it to strtotime in Module\NoScrape - Address https://github.com/friendica/friendica/issues/12011#issuecomment-1340019523 --- 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);