PHP 5.3 compatibility
This commit is contained in:
parent
3b42a148f3
commit
9b597f3b38
@ -74,13 +74,13 @@ function getFavicon($urls) {
|
||||
if(strstr((string) $attribute, 'icon')) {
|
||||
$tmp = $head_tag->attributes();
|
||||
if(isset($tmp['sizes'])) {
|
||||
$sizes = (string)$head_tag->attributes()['sizes'];
|
||||
$sizes = (string) $tmp['sizes'];
|
||||
}
|
||||
else {
|
||||
$sizes = '';
|
||||
}
|
||||
$favicons[$url][] = array(
|
||||
'favicon_url'=>(string) $head_tag->attributes()['href'],
|
||||
'favicon_url'=>(string) $tmp['href'],
|
||||
'sizes'=>$sizes
|
||||
);
|
||||
$go_next_tag = true;
|
||||
|
Loading…
Reference in New Issue
Block a user