1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 06:07:39 +02:00

Bridges\Tracy\Panel: silenced PHP warning

https://forum.nette.org/cs/26790-error-dibi-bridges-tracy-panel-oracle
This commit is contained in:
David Grudl
2016-07-27 14:01:46 +02:00
parent bc564555f8
commit 917971992f

View File

@@ -110,7 +110,7 @@ class Panel implements Tracy\IBarPanel
$backup = [$event->connection->onEvent, \dibi::$numOfQueries, \dibi::$totalTime];
$event->connection->onEvent = NULL;
$cmd = is_string($this->explain) ? $this->explain : ($event->connection->getConfig('driver') === 'oracle' ? 'EXPLAIN PLAN FOR' : 'EXPLAIN');
$explain = Helpers::dump($event->connection->nativeQuery("$cmd $event->sql"), TRUE);
$explain = Helpers::dump(@$event->connection->nativeQuery("$cmd $event->sql"), TRUE);
} catch (Dibi\Exception $e) {
}
list($event->connection->onEvent, \dibi::$numOfQueries, \dibi::$totalTime) = $backup;