|
@@ 319-324 (lines=6) @@
|
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
// Check that default value is in the range between minimum and maximum ones. |
| 319 |
|
if (!is_null($def_value) && |
| 320 |
|
($def_value < $min_value || $def_value > $max_value)) |
| 321 |
|
{ |
| 322 |
|
debug_write_log(DEBUG_NOTICE, '[field_validate_number] Default value is out of range.'); |
| 323 |
|
return ERROR_DEFAULT_VALUE_OUT_OF_RANGE; |
| 324 |
|
} |
| 325 |
|
|
| 326 |
|
return NO_ERROR; |
| 327 |
|
} |
|
@@ 541-546 (lines=6) @@
|
| 538 |
|
} |
| 539 |
|
|
| 540 |
|
// Check that default value is in the range between minimum and maximum ones. |
| 541 |
|
if (!is_null($def_value) && |
| 542 |
|
($def_value < $min_value || $def_value > $max_value)) |
| 543 |
|
{ |
| 544 |
|
debug_write_log(DEBUG_NOTICE, '[field_validate_date] Default value is out of range.'); |
| 545 |
|
return ERROR_DEFAULT_VALUE_OUT_OF_RANGE; |
| 546 |
|
} |
| 547 |
|
|
| 548 |
|
return NO_ERROR; |
| 549 |
|
} |