PHP 5.3 compatibility

This commit is contained in:
Phyks 2014-08-29 12:46:40 +02:00
parent 3bc81fbafa
commit 3b42a148f3

View File

@ -72,7 +72,8 @@ function getFavicon($urls) {
continue;
}
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'];
}
else {