#11242 validate autorefresh_list field that allows to load the view, edit user

This commit is contained in:
Jorge Rincon 2023-05-22 11:54:43 +02:00
parent a3787bf2ab
commit 0def9b252e
1 changed files with 2 additions and 1 deletions

View File

@ -1596,7 +1596,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 = [];