Update characterprofile.php

its your own code changing the var if am not mistaking this fixes the issue at hand
Merge pull request #30 from viperthepala/patch-5

Update characterprofile.php