Fixed php warnings caused by api/getpoolinfo