Fix notices in Parse URL feature
This commit is contained in:
parent
e9c9eb9c66
commit
c4318fe05e
2 changed files with 2 additions and 1 deletions
|
@ -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'];
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue