Exemplo n.º 1
0
}
//Get the data from the db if we aren't doing a new
//ride and there was no error (on error, we want the
//values the user entered before to still be present)
if (!$newRide && !$errMsg) {
    $errMsg = $ride->getDB_id($rideID);
    if (!$ride->f_rideID || $errMsg) {
        //NPS: What o what to do with these people?  How about
        //we send them back to the original page.
        Header("Location:{$RD_baseURL}/showRides.php" . encodeGet($getVars));
        return;
    }
} else {
    if (!$newRide) {
        $ride->f_rideID = $rideID;
        $subErrMsg = $ride->getRiderInfo();
        if ($subErrMsg) {
            //NPS: report this?
            error_log($subErrMsg, 0);
        }
    }
}
if ($ride->f_rideID) {
    $getVars["rideID"] = $ride->f_rideID;
}
if ($newRide) {
    if (!$ride->f_date) {
        $ride->f_date = date("Y-m-d H:i");
    }
    if (!$ride->f_time) {
        $ride->f_time = "00:00:00";