diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index 19ff4b52e60..7423f8d0a56 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -1102,6 +1102,9 @@ function get_next_value($db, $mask, $table, $field, $where = '', $objsoc = '', $ } //print "maskraz=".$maskraz; // -1=no reset + $monthcomp = 0; + $yearcomp = ''; + if ($maskraz > 0) { // A reset is required if ($maskraz == 99) { $maskraz = (int) date('m', $date);