Update Ranking.php

FIX: Warning: Illegal string offset 'userid' in
Merge pull request #203 from mafiadek/patch-1

Update Ranking.php
merge upstream master