Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

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

Open
dbykadorov opened this issue Jul 9, 2014 · 0 comments
Assignees

Comments

@dbykadorov
Copy link

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?

@malyshev malyshev self-assigned this Jul 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants