$fileDAO->save();
}
$file = array();
- _civicrm_api3_object_to_array(clone($fileDAO), $file);
+ $cloneDAO = clone($fileDAO);
+ _civicrm_api3_object_to_array($cloneDAO, $file);
return $file;
}
*
* @param array $params
* Array per getfields metadata.
- *
- * @return array
- * API Result Array
+ * @return array API Result Array
+ * @throws API_Exception
*/
function civicrm_api3_file_delete($params) {