cc-4347: PDOOOOOOOOOOOOO

This commit is contained in:
Rudi Grinberg 2012-09-05 17:59:18 -04:00
parent 78c81aa434
commit b112a0fe2b
1 changed files with 3 additions and 2 deletions

View File

@ -718,11 +718,12 @@ SQL;
$con = Propel::getConnection(); $con = Propel::getConnection();
$sql = "SELECT ends FROM cc_schedule " $sql = "SELECT ends FROM cc_schedule "
."WHERE instance_id = {$this->_instanceId} " ."WHERE instance_id = :instanceId"
."ORDER BY ends DESC " ."ORDER BY ends DESC "
."LIMIT 1"; ."LIMIT 1";
$query = $con->query($sql)->fetchColumn(0); $query = Application_Common_Database::prepareAndExecute( $sql,
array(':instanceId' => $this->_instanceId), 'column');
return ($query !== false) ? $query : null; return ($query !== false) ? $query : null;
} }