cc-4347: PDOOOOOOOOOOOOO
This commit is contained in:
parent
78c81aa434
commit
b112a0fe2b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue