fixed php error on functions page