0) { $previous_status = $spool_status[$status_index - 1]; return $previous_status; } else { return $status; } } ?>