Skip to content

Commit

Permalink
Fixed issue Julienh#48.
Browse files Browse the repository at this point in the history
  • Loading branch information
drwlrsn committed May 29, 2012
1 parent b310bab commit 165c967
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 165c967

Please sign in to comment.