Update htdocs/core/lib/functions.lib.php

This commit is contained in:
Florian Mortgat
2025-01-14 11:00:38 +01:00
committed by GitHub
parent 762e4ec8d1
commit 79c55149b2

View File

@@ -8882,7 +8882,7 @@ function dol_osencode($str)
*/ */
function dol_getIdFromCode($db, $key, $tablename, $fieldkey = 'code', $fieldid = 'id', $entityfilter = 0, $filters = '', $useCache = true) function dol_getIdFromCode($db, $key, $tablename, $fieldkey = 'code', $fieldid = 'id', $entityfilter = 0, $filters = '', $useCache = true)
{ {
static $cache_codes = array(); global $cache_codes;
// If key empty // If key empty
if ($key == '') { if ($key == '') {