calling trim on null is deprecated

add_janus_rtsp_user
Isaac Connor 2022-09-08 15:11:53 -04:00
parent 0e2e1903c1
commit 9276ae7d67
1 changed files with 2 additions and 1 deletions

View File

@ -272,7 +272,8 @@ public static function getStatuses() {
$cmd = getZmuCommand(' --janus-pin -m '.$this->{'Id'});
$output = shell_exec($cmd);
Debug("Running $cmd output: $output");
return trim($output);
return $output ? trim($output) : $output;
}
public function Control() {
if (!property_exists($this, 'Control')) {