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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)
{
static $cache_codes = array();
global $cache_codes;
// If key empty
if ($key == '') {