Update diablo3.api.class.php

Bug fix.