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.
Такая вот беда =)