Hello and happy hollidays
I have this code for conditions:
but data inside 'orders.id_traductor' DB is one array (have saved for example: 123,22,345 string)
¿how build comparation 'id' if data is string-Array?
thx!!!
javierp
I have this code for conditions:
<?php
$user = JFactory::getUser();
if (in_array( 8, $user->get('groups') ) ) {
return array();
}else if (in_array( 12, $user->get('groups') ) ) {
return array(
'orders.id_traductor' => $user->id,
'orders.docman_category_id' => 5,
'orders.enabled' => 1
);
}
?>
but data inside 'orders.id_traductor' DB is one array (have saved for example: 123,22,345 string)
¿how build comparation 'id' if data is string-Array?
thx!!!
javierp