mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 11:29:12 +02:00
#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) {
|
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."'");
|
$select = db_process_sql("SELECT autorefresh_white_list FROM tusuario WHERE id_user = '".$id."'");
|
||||||
$autorefresh_list = json_decode($select[0]['autorefresh_white_list']);
|
$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');
|
$autorefresh_list[0] = __('None');
|
||||||
} else {
|
} else {
|
||||||
$aux = [];
|
$aux = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user