first attempt at fixing the php warning
v1.1.9