UPnP: remove useless 'or false'

This commit is contained in:
Dylan K. Taylor 2018-03-31 12:42:11 +01:00
parent b9d3bd22a3
commit 69c54de460

View File

@ -65,7 +65,7 @@ abstract class UPnP{
try{
/** @noinspection PhpUndefinedClassInspection */
$com = new \COM("HNetCfg.NATUPnP") or false;
$com = new \COM("HNetCfg.NATUPnP");
/** @noinspection PhpUndefinedFieldInspection */
if($com === false or !is_object($com->StaticPortMappingCollection)){
return false;