diff --git a/gulliver/thirdparty/creole/contrib/DebugConnection.php b/gulliver/thirdparty/creole/contrib/DebugConnection.php index 0e830b31a..17e14969f 100755 --- a/gulliver/thirdparty/creole/contrib/DebugConnection.php +++ b/gulliver/thirdparty/creole/contrib/DebugConnection.php @@ -158,7 +158,11 @@ class DebugConnection implements Connection { $res = $this->childConnection->executeQuery($sql, $fetchmode); $endTime = microtime(true); $time = $endTime - $startTime; - $this->log("executeQuery|$time|$sql"); + if(is_string($sql)){ + $this->log("executeQuery|$time|$sql"); + }else{ + $this->log("executeQuery|$time|Sql empty"); + } return $res; }