Fix notice
authorChristian Weiske <cweiske@cweiske.de>
Tue, 30 Aug 2016 11:05:14 +0000 (13:05 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 30 Aug 2016 11:05:14 +0000 (13:05 +0200)
src/phinde/Crawler.php

index 6459fb4..a63815d 100644 (file)
@@ -47,7 +47,7 @@ class Crawler
             'accept',
             implode(',', array_keys(static::$supportedIndexTypes))
         );
             '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));
         }
             $nMoDate = strtotime($existingDoc->modate);
             $req->setHeader('If-Modified-Since: ' . date('r', $nMoDate));
         }