correctly handle dob again
This commit is contained in:
@@ -412,7 +412,10 @@ function booking_update($node) {
|
|||||||
//check if the key is a field that belongs in the database
|
//check if the key is a field that belongs in the database
|
||||||
if ((strpos($key, "booking_") === 0) || $key === "nid") {
|
if ((strpos($key, "booking_") === 0) || $key === "nid") {
|
||||||
//do we need to treat this field carefully?
|
//do we need to treat this field carefully?
|
||||||
if (in_array($key, $boolean_keys, FALSE)) {
|
if (strpos($key, "booking_dob") === 0) {
|
||||||
|
$data[$key] = _date_to_ts($value);
|
||||||
|
}
|
||||||
|
elseif (in_array($key, $boolean_keys, FALSE)) {
|
||||||
$data[$key] = $value == 1 ? 'Y' : 'N';
|
$data[$key] = $value == 1 ? 'Y' : 'N';
|
||||||
}
|
}
|
||||||
elseif (in_array($key, $default_zero_keys, FALSE)) {
|
elseif (in_array($key, $default_zero_keys, FALSE)) {
|
||||||
|
Reference in New Issue
Block a user