CC-2647 : Check MD will fit db constraints in Airtime

This commit is contained in:
Naomi Aro 2011-08-05 19:04:15 +02:00 committed by James
parent 375cfb2c2d
commit a199585cb9
2 changed files with 55 additions and 2 deletions

View file

@ -453,6 +453,8 @@ class ApiController extends Zend_Controller_Action
if ($mode == "create") {
$filepath = $md['MDATA_KEY_FILEPATH'];
$filepath = str_replace("\\", "", $filepath);
$file = StoredFile::RecallByFilepath($filepath);
if (is_null($file)) {