Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 105cf68

Browse filesBrowse files
committed
fixed: fixed the bug of request_panel.php in WebProfiler
When the session attributes don't exist, $data->sessionAttributes->getRawValue() cannot be called as not being defined. So check the session attributes before calling getRawValue()
1 parent caa9d82 commit 105cf68
Copy full SHA for 105cf68

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/request_panel.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/request_panel.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
<th>Value</th>
4343
</tr>
4444

45-
<?php foreach ($data->getSessionAttributes()->getRawValue() as $key => $value): ?>
45+
<?php if (count($sessionAttributes = $data->getSessionAttributes())):?>
46+
<?php foreach ($sessionAttributes->getRawValue() as $key => $value): ?>
4647
<tr>
4748
<th><?php echo $key ?></th>
4849
<td>
@@ -58,4 +59,5 @@
5859
</td>
5960
</tr>
6061
<?php endforeach; ?>
62+
<?php endif; ?>
6163
</table>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.