Skip to content

Bugfix webprofiler #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
  • Loading branch information
brtriver committed Oct 8, 2010
commit 105cf682a51a325c400ed953e76496b1cb2113ce
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
<th>Value</th>
</tr>

<?php foreach ($data->getSessionAttributes()->getRawValue() as $key => $value): ?>
<?php if (count($sessionAttributes = $data->getSessionAttributes())):?>
<?php foreach ($sessionAttributes->getRawValue() as $key => $value): ?>
<tr>
<th><?php echo $key ?></th>
<td>
Expand All @@ -58,4 +59,5 @@
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy