mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-01-29 00:21:06 -05:00
test for existence of port in url_parts
This commit is contained in:
@@ -232,7 +232,7 @@ for( $monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1 ) {
|
||||
} elseif ( $monitor['Type'] == 'Ffmpeg' || $monitor['Type'] == 'Libvlc' ) {
|
||||
$url_parts = parse_url( $monitor['Path'] );
|
||||
$source = $url_parts['host']. (
|
||||
( $url_parts['port'] and ( $url_parts['port'] != '554' and $url_parts['port'] != '80' ) ) ? ':'.$url_parts['port'] : '' );
|
||||
( isset($url_parts['port']) and ( $url_parts['port'] != '554' and $url_parts['port'] != '80' ) ) ? ':'.$url_parts['port'] : '' );
|
||||
}
|
||||
if ( $source == '' ) {
|
||||
$source = 'Monitor ' . $monitor['Id'];
|
||||
|
||||
Reference in New Issue
Block a user