malyshev / yii-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.

Home Page:http://www.yiiframework.com/extension/yii-debug-toolbar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug in binding sql params with commas

opened this issue · comments

if in condition use something with commas ( status IN( :status ) , status => '101,102',), then sql params binding don't work properly, because there are exploding by comma on line 364 in file \yii-debug-toolbar\panels\YiiDebugToolbarPanelSql.php
$params = explode(',', $params);
then on line 370 exploding by =
list($key,$value) = explode('=', $param, 2);
and offset 1 is undefined. Then we have html code of PHP Notice appended to sql panel of toolbar, it append stylesheets too, in result - site looks bad.

Такая вот беда =)