Merge branch 'ent-11242-error-500-al-intentar-editar-un-usuario-en-metaconsola-tyr' into 'develop'

Ent 11242 error 500 al intentar editar un usuario en metaconsola tyr

See merge request artica/pandorafms!5933
This commit is contained in:
Rafael Ameijeiras 2023-05-24 15:41:56 +00:00
commit 16336a5cde
1 changed files with 2 additions and 1 deletions

View File

@ -1607,7 +1607,8 @@ $autorefresh_list_out['operation/events/events'] = 'Events';
if (isset($autorefresh_list) === false || empty($autorefresh_list) === true || empty($autorefresh_list[0]) === true) {
$select = db_process_sql("SELECT autorefresh_white_list FROM tusuario WHERE id_user = '".$id."'");
$autorefresh_list = json_decode($select[0]['autorefresh_white_list']);
if ($autorefresh_list === null) {
if ($autorefresh_list === null || $autorefresh_list === 0) {
$autorefresh_list = [];
$autorefresh_list[0] = __('None');
} else {
$aux = [];