Update holiday.class.php

This commit is contained in:
Laurent Destailleur 2021-10-20 14:43:47 +02:00 committed by GitHub
parent b03bad98ae
commit 4bb1774568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -897,7 +897,7 @@ class Holiday extends CommonObject
global $conf, $langs;
$error = 0;
$checkBalance = getDictvalue(MAIN_DB_PREFIX.'c_holiday_types', 'block_if_negative', $this->fk_type);
$checkBalance = getDictionaryValue(MAIN_DB_PREFIX.'c_holiday_types', 'block_if_negative', $this->fk_type);
if ($checkBalance > 0 && $this->statut != self::STATUS_DRAFT) {
$balance = $this->getCPforUser($this->fk_user, $this->fk_type);