Fixed a php error from removing retriev from/until