1
1
Fork 0

Fix notices in Parse URL feature

This commit is contained in:
Hypolite Petovan 2018-10-16 18:27:13 -04:00
parent e9c9eb9c66
commit c4318fe05e
2 changed files with 2 additions and 1 deletions

View file

@ -73,6 +73,7 @@ function parse_url_content(App $a)
$hdrs[$k] = $v;
}
}
$type = null;
if (array_key_exists('Content-Type', $hdrs)) {
$type = $hdrs['Content-Type'];
}

View file

@ -141,7 +141,7 @@ class ParseUrl
}
// If the file is too large then exit
if ($curlResult->getInfo()['download_content_length'] > 1000000) {
if (defaults($curlResult->getInfo(), 'download_content_length', 0) > 1000000) {
return $siteinfo;
}