Well, the theme would be calling some function with an invalid parameter. I could probably give you a good idea of which function, however, you have not told me the version of Zenphoto you are using and the line number quoted does not correspond to anything which could give that error in the 1.3 version of Zenphoto.