diff options
Diffstat (limited to 'frontends/php/popup_media.php')
-rw-r--r-- | frontends/php/popup_media.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/frontends/php/popup_media.php b/frontends/php/popup_media.php index a51a86f13c5..49f0b9bcbce 100644 --- a/frontends/php/popup_media.php +++ b/frontends/php/popup_media.php @@ -50,7 +50,7 @@ $fields = array( 'add'=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL), /* other */ 'form'=> array(T_ZBX_STR, O_OPT, P_SYS, NULL, NULL), - 'form_refresh'=>array(T_ZBX_STR, O_OPT, NULL, NULL, NULL) + 'form_refresh'=>array(T_ZBX_INT, O_OPT, null, null, null) ); check_fields($fields); @@ -61,7 +61,7 @@ if (isset($_REQUEST['add'])) { $validator = new CTimePeriodValidator(); if ($validator->validate($_REQUEST['period'])) { $severity = 0; - $_REQUEST['severity'] = get_request('severity', array()); + $_REQUEST['severity'] = getRequest('severity', array()); foreach ($_REQUEST['severity'] as $id) { $severity |= 1 << $id; } @@ -82,7 +82,7 @@ if (isset($_REQUEST['add'])) { } if (isset($_REQUEST['media']) && !isset($_REQUEST['form_refresh'])) { - $rq_severity = get_request('severity', 63); + $rq_severity = getRequest('severity', 63); $severity = array(); for ($i = 0; $i < TRIGGER_SEVERITY_COUNT; $i++) { @@ -92,14 +92,14 @@ if (isset($_REQUEST['media']) && !isset($_REQUEST['form_refresh'])) { } } else { - $severity = get_request('severity', array(0, 1, 2, 3, 4, 5)); + $severity = getRequest('severity', array(0, 1, 2, 3, 4, 5)); } -$media = get_request('media', -1); -$sendto = get_request('sendto', ''); -$mediatypeid = get_request('mediatypeid', 0); -$active = get_request('active', 0); -$period = get_request('period', ZBX_DEFAULT_INTERVAL); +$media = getRequest('media', -1); +$sendto = getRequest('sendto', ''); +$mediatypeid = getRequest('mediatypeid', 0); +$active = getRequest('active', 0); +$period = getRequest('period', ZBX_DEFAULT_INTERVAL); $frmMedia = new CFormTable(_('New media')); |