We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 753da50 commit 41a74e1Copy full SHA for 41a74e1
interface/lib/classes/validate_datetime.inc.php
@@ -74,7 +74,8 @@ function _get_error($errmsg)
74
*/
75
function _get_timestamp_value($field_value)
76
{
77
- $second = 0;
+ if(!is_array($field_value)) return 0;
78
+ $second = 0;
79
$filtered_values = array_map(create_function('$item','return (int)$item;'), $field_value);
80
extract($filtered_values, EXTR_OVERWRITE);
81
@@ -93,6 +94,7 @@ function _get_timestamp_value($field_value)
93
94
95
function not_empty($field_name, $field_value, $validator)
96
97
+ if(!is_array($field_value)) return $this->_get_error($validator['errmsg']);
98
extract($field_value);
99
if ( !($day > 0 && $month > 0 && $year > 0) ) {
100
return $this->_get_error($validator['errmsg']);
0 commit comments