Skip to content

Commit

Permalink
Fix PHP7 warning
Browse files Browse the repository at this point in the history
Closes #24
  • Loading branch information
getdatakick committed Jun 9, 2022
1 parent a9ce325 commit 2bab143
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions classes/Tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -4489,11 +4489,10 @@ public static function parseFaviconSizeTag($html)
break;
case 'size':
$dimension = explode('x', $components[1]);
if (count($dimension) !== 2) {
continue;
if (count($dimension) === 2) {
$favicon['width'] = $dimension[0];
$favicon['height'] = $dimension[1];
}
$favicon['width'] = $dimension[0];
$favicon['height'] = $dimension[1];
break;
}
}
Expand Down

0 comments on commit 2bab143

Please sign in to comment.