From ba1f6fc77827dba86b1ac0b62aa288dd0f977cb8 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 30 Aug 2016 13:05:14 +0200 Subject: [PATCH] Fix notice --- src/phinde/Crawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.30.2