Skip to content

Commit

Permalink
Update product.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Nov 3, 2024
1 parent fb0d50d commit 7e6c861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
function doliproduct($object, $value) {
global $current_user;

if ( function_exists('pll_the_languages') ) {
$lang = pll_current_language('locale');
$lang = doliUserLang($current_user, 'locale');
if ( isset($object->multilangs->$lang) ) {
return !empty($object->multilangs->$lang->$value) ? $object->multilangs->$lang->$value : $object->$value;
} else {
if (isset($object->$value)) return $object->$value;
Expand Down

0 comments on commit 7e6c861

Please sign in to comment.