cc-4347: PDO getRbroadcastsRelative()
This commit is contained in:
parent
cfe0d7aa0c
commit
23ccd75290
|
@ -468,14 +468,15 @@ SQL;
|
||||||
*/
|
*/
|
||||||
public function getRebroadcastsRelative()
|
public function getRebroadcastsRelative()
|
||||||
{
|
{
|
||||||
$con = Propel::getConnection();
|
$sql = <<<SQL
|
||||||
|
SELECT day_offset,
|
||||||
$showId = $this->getId();
|
start_time
|
||||||
$sql = "SELECT day_offset, start_time FROM cc_show_rebroadcast "
|
FROM cc_show_rebroadcast
|
||||||
."WHERE show_id = $showId "
|
WHERE show_id = :showId
|
||||||
."ORDER BY day_offset";
|
ORDER BY day_offset
|
||||||
|
SQL;
|
||||||
return $con->query($sql)->fetchAll();
|
return Application_Common_Database::prepareAndExecute( $sql,
|
||||||
|
array( ':showId' => $this->getId() ), 'all' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue