fix variable issue in checkin.php