function clear_old_confirm_claims() { $confirm = new Confirm(); $confirm->claimed = null; $confirm->whereAdd('now() - claimed > ' . CLAIM_TIMEOUT); $confirm->update(DB_DATAOBJECT_WHEREADD_ONLY); $confirm->free(); unset($confirm); }