Fix exception thrown when the analyzer doesn't return filesize with the metadata
This commit is contained in:
parent
b324031ee6
commit
95517cac87
|
@ -226,7 +226,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
//as a foreign key to cc_music_dirs.
|
||||
if (isset($requestData["full_path"])) {
|
||||
$fileSizeBytes = filesize($requestData["full_path"]);
|
||||
if ($fileSizeBytes === false)
|
||||
if (!isset($fileSizeBytes) || $fileSizeBytes === false)
|
||||
{
|
||||
$file->setDbImportStatus(2)->save();
|
||||
$this->fileNotFoundResponse();
|
||||
|
|
Loading…
Reference in New Issue