Audio preview fix
This commit is contained in:
parent
35c450be3f
commit
46228341b2
1 changed files with 2 additions and 1 deletions
|
@ -597,13 +597,14 @@ SQL;
|
||||||
/* TODO: Callers of this function should use a Propel transaction. Start
|
/* TODO: Callers of this function should use a Propel transaction. Start
|
||||||
* by creating $con outside the function with beingTransaction() */
|
* by creating $con outside the function with beingTransaction() */
|
||||||
public static function RecallById($p_id=null, $con=null) {
|
public static function RecallById($p_id=null, $con=null) {
|
||||||
$p_id = intval($p_id);
|
|
||||||
//TODO
|
//TODO
|
||||||
if (is_null($con)) {
|
if (is_null($con)) {
|
||||||
$con = Propel::getConnection(CcFilesPeer::DATABASE_NAME);
|
$con = Propel::getConnection(CcFilesPeer::DATABASE_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($p_id)) {
|
if (isset($p_id)) {
|
||||||
|
$p_id = intval($p_id);
|
||||||
|
|
||||||
$storedFile = CcFilesQuery::create()->findPK($p_id, $con);
|
$storedFile = CcFilesQuery::create()->findPK($p_id, $con);
|
||||||
if (is_null($storedFile)) {
|
if (is_null($storedFile)) {
|
||||||
throw new Exception("Could not recall file with id: ".$p_id);
|
throw new Exception("Could not recall file with id: ".$p_id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue