use isset instead of empty to get rid of warning

This commit is contained in:
Isaac Connor 2017-07-13 10:08:36 -04:00
parent f294acde92
commit 363303efa9
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ if ( ! empty($_REQUEST['mid']) ) {
} else {
$nextId = getTableAutoInc( 'Monitors' );
if ( ! empty( $_REQUEST['dupId'] ) ) {
if ( isset( $_REQUEST['dupId'] ) ) {
$monitor = new Monitor( $_REQUEST['dupId'] );
if ( ZM_OPT_X10 )
$x10Monitor = dbFetchOne( 'SELECT * FROM TriggersX10 WHERE MonitorId = ?', NULL, array($_REQUEST['dupId']) );