From c021369967c0662113e034a461e0ce8f2b3b8f44 Mon Sep 17 00:00:00 2001 From: Gamesh Date: Thu, 17 Apr 2014 14:59:18 +0300 Subject: [PATCH] Ternary operator supported only in php5.3+ Fixes compatibility with php 5.2, as the Docs still say that propel requires 5.2.4+ version, ternary operators should not be used. --- runtime/lib/connection/DebugPDOStatement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/lib/connection/DebugPDOStatement.php b/runtime/lib/connection/DebugPDOStatement.php index 5773a6c47..9e8e557be 100644 --- a/runtime/lib/connection/DebugPDOStatement.php +++ b/runtime/lib/connection/DebugPDOStatement.php @@ -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();