git.cweiske.de
/
phinde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1ba3122
)
Fix notice
author
Christian Weiske
<cweiske@cweiske.de>
Tue, 30 Aug 2016 11:05:14 +0000
(13:05 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Tue, 30 Aug 2016 11:05:14 +0000
(13:05 +0200)
src/phinde/Crawler.php
patch
|
blob
|
history
diff --git
a/src/phinde/Crawler.php
b/src/phinde/Crawler.php
index 6459fb456d615ad475db4d22788ca752e2cf9fa8..a63815de69f93e008e5ceed04b4b0958f8f0e83c 100644
(file)
--- a/
src/phinde/Crawler.php
+++ b/
src/phinde/Crawler.php
@@
-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));
}