Add some comments

This commit is contained in:
Jeremy Benoist 2016-12-04 11:27:49 +01:00 committed by GitHub
parent a2c1b94e82
commit 106bdbcd0a

View file

@ -51,6 +51,9 @@ class ContentProxy
// do we have to fetch the content or the provided one is ok?
if (empty($content) || false === $this->validateContent($content)) {
$fetchedContent = $this->graby->fetchContent($url);
// when content is imported, we have information in $content
// in case fetching content goes bad, we'll keep the imported information instead of overriding them
if (empty($content) || $fetchedContent['html'] !== $this->fetchingErrorMessage) {
$content = $fetchedContent;
}