Fix php error. closes #2449