#11242 validate autorefresh_list field that allows to load the view, edit user
This commit is contained in:
parent
a3787bf2ab
commit
0def9b252e
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue