PHP 5.3 compatibility
This commit is contained in:
parent
3bc81fbafa
commit
3b42a148f3
@ -72,7 +72,8 @@ function getFavicon($urls) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(strstr((string) $attribute, 'icon')) {
|
if(strstr((string) $attribute, 'icon')) {
|
||||||
if(isset($head_tag->attributes()['sizes'])) {
|
$tmp = $head_tag->attributes();
|
||||||
|
if(isset($tmp['sizes'])) {
|
||||||
$sizes = (string)$head_tag->attributes()['sizes'];
|
$sizes = (string)$head_tag->attributes()['sizes'];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user