Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This handles the case where the 'reset_form' button triggers an error for users who are not logged in.
When not logged in, the _SESSION variable is undefined.
This produces an error about _SESSION not being defined.
This patch adds a check to ensure that the variable exists before acting on it.
Comment | File | Size | Author |
---|---|---|---|
#2 | views-7.x-3.0-beta3-_SESSION_invalid_usage-2.patch | 926 bytes | thekevinday |
views-7.x-3.0-beta3-_SESSION_invalid_usage-1.patch | 941 bytes | thekevinday | |
Comments
Comment #1
dawehnerUpdate status.
Some kind of comment for this would be cool.
Additional take care about drupal codestyle.
Comment #2
thekevinday CreditAttribution: thekevinday commentedThen try this out out for size.
Is there some sort of drupal-specific way to access
$_SESSION
?I would rather use that instead of directly checking and calling
$_SESSION
to avoid problems like this.Comment #3
dawehnerCool, updated status.
Comment #4
dawehnerand commited to 7.x-3.x