For the case when time() returned 0? I think after the ``if(!$data) $data = time();`` above it can be assumed that $data is set to a valid value here.