Skip to content

Commit

Permalink
Merge pull request Julienh#49 from drwlrsn/master
Browse files Browse the repository at this point in the history
Pinterest count
  • Loading branch information
Julienh committed May 29, 2012
2 parents b310bab + 165c967 commit a4b5a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sharrre.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

$result = json_decode(str_replace(array('(', ')'), array('', ''), $content));
$json['count'] = $result->count;
if( !isset($json['count']) ) $json['count'] = 0;
if( !isset($json['count']) || $json['count'] === '-' ) $json['count'] = 0;
}
}
echo str_replace('\\/','/',json_encode($json));
Expand Down

0 comments on commit a4b5a00

Please sign in to comment.