Well, its expecting a double...and an array is given...and it gives you the line of code where its failing...check the parameter of the function and see why its passing an array instead of a double value? Oh the joys of debugging.
If I remember correctly the value you need is index zero of the array its passing. So add the [0] to the array variable in the parameter list so you're passing the correct value. $var would be $var[0] (except var will be the correct identifier).
---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};