diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 807a3f584..88ef45fcc 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -172,7 +172,7 @@ class StoredFile { */ public function getMetadataValue($p_category) { - return $this->getDbColMetadataValue(constant($p_category)); + return $this->getDbColMetadataValue($p_category); } /** @@ -805,7 +805,7 @@ class StoredFile { die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": ' . $duplicate->getMessage() .'}}'); } if (file_exists($duplicate->getFilePath())) { - $duplicateName = $duplicate->getMetadataValue("UI_MDATA_KEY_TITLE"); + $duplicateName = $duplicate->getMetadataValue(UI_MDATA_KEY_TITLE); die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": "An identical audioclip named ' . $duplicateName . ' already exists in the storage server."}}'); } }