- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
if ($localize && is_array($results))
foreach ($results as $_k => $_row)
foreach ((array) $_row as $_rc => $_col)
if ($_col_unserialized = unserialize($_col))
if (is_array($_col_unserialized))
if (isset($_col_unserialized[$_SESSION['language']]))
$results[$_k]->{$_rc} = $_col_unserialized[$_SESSION['language']];
else
$results[$_k]->{$_rc} = array_shift($_col_unserialized);