Nope, this couldn't solve the Problem. If i set Display Errors off it works, only the big number is missing.
I have no idea what's wrong.
The idea with the script is great but a little bit tricky^^
Deleting this code solves the Problem with displaying errors:
if($pageRank != 10){...