Merge pull request #1714 from connortechnology/remove_emptys
remove the use of empty which on php < 5.5 only supports variables.
This commit is contained in:
commit
ce36906d1c
|
@ -30,7 +30,7 @@ function getControlCommands( $monitor )
|
||||||
$cmds['PresetGoto'] = "presetGoto";
|
$cmds['PresetGoto'] = "presetGoto";
|
||||||
$cmds['PresetHome'] = "presetHome";
|
$cmds['PresetHome'] = "presetHome";
|
||||||
|
|
||||||
if ( !empty($monitor->CanZoom()) )
|
if ( $monitor->CanZoom() )
|
||||||
{
|
{
|
||||||
if ( $monitor->CanZoomCon() )
|
if ( $monitor->CanZoomCon() )
|
||||||
$cmds['ZoomRoot'] = "zoomCon";
|
$cmds['ZoomRoot'] = "zoomCon";
|
||||||
|
@ -45,7 +45,7 @@ function getControlCommands( $monitor )
|
||||||
$cmds['ZoomMan'] = "zoomMan";
|
$cmds['ZoomMan'] = "zoomMan";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !empty($monitor->CanFocus()) )
|
if ( $monitor->CanFocus() )
|
||||||
{
|
{
|
||||||
if ( $monitor->CanFocusCon() )
|
if ( $monitor->CanFocusCon() )
|
||||||
$cmds['FocusRoot'] = "focusCon";
|
$cmds['FocusRoot'] = "focusCon";
|
||||||
|
@ -60,7 +60,7 @@ function getControlCommands( $monitor )
|
||||||
$cmds['FocusMan'] = "focusMan";
|
$cmds['FocusMan'] = "focusMan";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !empty($monitor->CanIris()) )
|
if ( $monitor->CanIris() )
|
||||||
{
|
{
|
||||||
if ( $monitor->CanIrisCon() )
|
if ( $monitor->CanIrisCon() )
|
||||||
$cmds['IrisRoot'] = "irisCon";
|
$cmds['IrisRoot'] = "irisCon";
|
||||||
|
@ -75,7 +75,7 @@ function getControlCommands( $monitor )
|
||||||
$cmds['IrisMan'] = "irisMan";
|
$cmds['IrisMan'] = "irisMan";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !empty($monitor->CanWhite()) )
|
if ( $monitor->CanWhite() )
|
||||||
{
|
{
|
||||||
if ( $monitor->CanWhiteCon() )
|
if ( $monitor->CanWhiteCon() )
|
||||||
$cmds['WhiteRoot'] = "whiteCon";
|
$cmds['WhiteRoot'] = "whiteCon";
|
||||||
|
@ -89,7 +89,7 @@ function getControlCommands( $monitor )
|
||||||
$cmds['WhiteMan'] = "whiteMan";
|
$cmds['WhiteMan'] = "whiteMan";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !empty($monitor->CanGain()) )
|
if ( $monitor->CanGain() )
|
||||||
{
|
{
|
||||||
if ( $monitor->CanGainCon() )
|
if ( $monitor->CanGainCon() )
|
||||||
$cmds['GainRoot'] = "gainCon";
|
$cmds['GainRoot'] = "gainCon";
|
||||||
|
@ -103,7 +103,7 @@ function getControlCommands( $monitor )
|
||||||
$cmds['GainMan'] = "gainMan";
|
$cmds['GainMan'] = "gainMan";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !empty($monitor->CanMove()) )
|
if ( $monitor->CanMove() )
|
||||||
{
|
{
|
||||||
if ( $monitor->CanMoveCon() )
|
if ( $monitor->CanMoveCon() )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue