Fix php error on update. closes #2130