1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 13:28:35 +01:00

Merge pull request #150 from discordier/fix-sql-params

Ensure only parameters are added to SQL widget and no prototype functions.
This commit is contained in:
Maxime Bouroumeau-Fuseau 2014-08-20 17:25:30 +02:00
commit 5d08b31357

View File

@ -35,9 +35,11 @@
if (stmt.params && !$.isEmptyObject(stmt.params)) {
var table = $('<table><tr><th colspan="2">Params</th></tr></table>').addClass(csscls('params')).appendTo(li);
for (var key in stmt.params) {
if (typeof stmt.params[key] !== 'function') {
table.append('<tr><td class="' + csscls('name') + '">' + key + '</td><td class="' + csscls('value') +
'">' + stmt.params[key] + '</td></tr>');
}
}
li.css('cursor', 'pointer').click(function() {
if (table.is(':visible')) {
table.hide();