Merge branch 'saas' of https://github.com/sourcefabric/Airtime into saas
This commit is contained in:
commit
c627342e28
104 changed files with 31315 additions and 20071 deletions
|
@ -237,7 +237,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(self::IMPORT_STATUS_FAILED)->save();
|
||||
$this->fileNotFoundResponse();
|
||||
|
@ -280,8 +280,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$id = $this->getId();
|
||||
if (!$id) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue