/**
  * Restores an attendance entry and fallback to attendances rendering
  * @param int	attendance id
  */
 public function attendance_restore($attendance_id)
 {
     $attendance = new Attendance();
     if (!empty($attendance_id)) {
         $affected_rows = $attendance->attendance_restore($attendance_id);
     }
     if ($affected_rows) {
         $message['message_attendance_restore'] = true;
     }
     $this->attendance_list();
 }