mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-29 11:17:52 +01:00
Merge pull request #196 from hieblmedia/patch-1
Show the real parameter name for prepared queries.
This commit is contained in:
commit
7b2006e6e0
@ -132,8 +132,8 @@ class TracedStatement
|
||||
public function getParameters()
|
||||
{
|
||||
$params = array();
|
||||
foreach ($this->parameters as $param) {
|
||||
$params[] = htmlentities($param, ENT_QUOTES, 'UTF-8', false);
|
||||
foreach ($this->parameters as $name => $param) {
|
||||
$params[$name] = htmlentities($param, ENT_QUOTES, 'UTF-8', false);
|
||||
}
|
||||
return $params;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user