CC-3996: Undefined offset: 0 in StoredFile.php (Apache error)
-fixed
This commit is contained in:
parent
ffb7f2ff65
commit
8005049bdc
|
@ -888,7 +888,7 @@ Logging::log("getting media! - 2");
|
|||
// Check if file is playable
|
||||
$command = sprintf("/usr/bin/airtime-liquidsoap -c 'output.dummy(audio_to_stereo(single(\"%s\")))' 2>&1", $audio_file);
|
||||
exec($command, $output, $rv);
|
||||
if ($rv != 0 || $output[0] == 'TagLib: MPEG::Properties::read() -- Could not find a valid last MPEG frame in the stream.') {
|
||||
if ($rv != 0 || (!empty($output) && $output[0] == 'TagLib: MPEG::Properties::read() -- Could not find a valid last MPEG frame in the stream.')) {
|
||||
$result = array("code" => 110, "message" => "This file appears to be corrupted and will not be added to media library.");
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue