Skip to content

Commit

Permalink
check if array
Browse files Browse the repository at this point in the history
  • Loading branch information
mpclarkson committed Jul 16, 2015
1 parent 07b5742 commit 4d61c45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/IconScraper/Scraper.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private function getIcons($url) {
switch(strtolower($attribute)) {
case Icon::APPLE_TOUCH:
$type = Icon::APPLE_TOUCH;
$size = is_array($size) ? explode('x', $size) : $size;
$size = !is_array($size) ? explode('x', $size) : $size;
break;
default:
if(strpos($link->getAttribute('href'), 'icon') !== FALSE) {
Expand Down

0 comments on commit 4d61c45

Please # to comment.