From: Christian Weiske Date: Tue, 30 Aug 2016 11:05:14 +0000 (+0200) Subject: Fix notice X-Git-Tag: v0.2.0~31 X-Git-Url: https://git.cweiske.de/phinde.git/commitdiff_plain/ba1f6fc77827dba86b1ac0b62aa288dd0f977cb8?hp=1ba3122f581c4f2dd3e013673980c239287995d3 Fix notice --- diff --git a/src/phinde/Crawler.php b/src/phinde/Crawler.php index 6459fb4..a63815d 100644 --- a/src/phinde/Crawler.php +++ b/src/phinde/Crawler.php @@ -47,7 +47,7 @@ class Crawler 'accept', implode(',', array_keys(static::$supportedIndexTypes)) ); - if ($existingDoc) { + if ($existingDoc && isset($existingDoc->modate)) { $nMoDate = strtotime($existingDoc->modate); $req->setHeader('If-Modified-Since: ' . date('r', $nMoDate)); }