aboutsummaryrefslogtreecommitdiff
path: root/src/phinde/Crawler.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2016-08-30 13:05:14 +0200
committerChristian Weiske <cweiske@cweiske.de>2016-08-30 13:05:14 +0200
commitba1f6fc77827dba86b1ac0b62aa288dd0f977cb8 (patch)
tree86aaa2b568c49ca7d99c820cf1bcdd54802b5a0f /src/phinde/Crawler.php
parent1ba3122f581c4f2dd3e013673980c239287995d3 (diff)
downloadphinde-ba1f6fc77827dba86b1ac0b62aa288dd0f977cb8.tar.gz
phinde-ba1f6fc77827dba86b1ac0b62aa288dd0f977cb8.zip
Fix notice
Diffstat (limited to 'src/phinde/Crawler.php')
-rw-r--r--src/phinde/Crawler.php2
1 files changed, 1 insertions, 1 deletions
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));
}