diff --git a/encoder/static.php b/encoder/static.php index 60cd526..99cf89a 100755 --- a/encoder/static.php +++ b/encoder/static.php @@ -117,9 +117,9 @@ function update_service($which_service) $hdmi_delay_video = $data['hdmi']['video_delay']; $hdmi_delay_audio = $data['hdmi']['audio_delay']; - if ($srt_pass1 === "") + if ($srt_pass1 == "") $srt_pass1 = generateRandomString(16); - if ($srt_pass2 === "") + if ($srt_pass2 == "") $srt_pass2 = generateRandomString(16); switch ($use_common_backend) { case "copy_input": @@ -813,9 +813,9 @@ function update_service_backend($service) $srt_pass1 = $data['srt']['stream_id_1']; $srt_pass2 = $data['srt']['stream_id_2']; - if ($srt_pass1 === "") + if ($srt_pass1 == "") $srt_pass1 = generateRandomString(16); - if ($srt_pass2 === "") + if ($srt_pass2 == "") $srt_pass2 = generateRandomString(16); $jsonFile = __DIR__ . '/output.json';