fixed php warnings in api/getpoolinfo