Skip to content

Commit

Permalink
Novo ajuste no parse
Browse files Browse the repository at this point in the history
Corrigido problema onde algumas urls estavam sendo indevidamente
concatenadas com a string 'https://foursquare.com'.
  • Loading branch information
gavlinski committed Jan 14, 2013
1 parent 7214d33 commit 3e2cd37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion load.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,10 @@ function parseVenues($html) {
$vid = substr($tag->getAttribute('href'), -24);
if (!in_array($vid, $venues)) {
$venues[$i] = $vid;
$ret[$i] = "https://foursquare.com" . $tag->getAttribute('href');
if (stripos($tag->getAttribute('href'), "https://foursquare.com") !== false)
$ret[$i] = $tag->getAttribute('href');
else
$ret[$i] = "https://foursquare.com" . $tag->getAttribute('href');
$i++;
}
}
Expand Down

0 comments on commit 3e2cd37

Please sign in to comment.