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

Invalid argument supplied for foreach() in yii-debug-toolbar\views\panels\request.php(59)

dbykadorov opened this issue · comments

In some cases when session not started it is not safe to pass null in $session in yii-debug-toolbar\panels\YiiDebugToolbarPanelRequest.php:54

'session' => isset($_SESSION) ? $_SESSION : null,

Because null value can produce Invalid argument supplied for foreach() in yii-debug-toolbar\views\panels\request.php.

Maybe empty array() will be more suitable in this case?