Skip to content

Commit

Permalink
Ternary operator supported only in php5.3+
Browse files Browse the repository at this point in the history
Fixes compatibility with php 5.2, as the Docs still say that propel requires 5.2.4+ version, ternary operators should not be used.
  • Loading branch information
Gamesh committed Apr 17, 2014
1 parent e914de6 commit c021369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/lib/connection/DebugPDOStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function execute($input_parameters = null)
$debug = $this->pdo->getDebugSnapshot();
$return = parent::execute($input_parameters);

$sql = $this->getExecutedQueryString($input_parameters?:array());
$sql = $this->getExecutedQueryString($input_parameters?$input_parameters:array());
$this->pdo->log($sql, null, __METHOD__, $debug);
$this->pdo->setLastExecutedQuery($sql);
$this->pdo->incrementQueryCount();
Expand Down

0 comments on commit c021369

Please sign in to comment.