Ticket #989 (closed enhancement: fixed)
Remove redundant isset checks when using Wakka::GetSafeVar
| Reported by: | GeorgePetsagourakis | Owned by: | BrianKoontz |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3.1 |
| Component: | unspecified | Version: | 1.3 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by BrianKoontz) (diff)
Many times through the code the developer witnesses:
if (isset($_POST['action']) && ($this->GetSafeVar('action', 'post') == 'updatepass'))
All those should turn into:
if ($this->GetSafeVar('action', 'post') == 'updatepass')
Since GetSafeVar is checking for the isset.
Related tickets
- #995 Remove redundant isset checks in Wakka::GetSafeVar()
Change History
Note: See
TracTickets for help on using
tickets.