#16547 closed defect (bug) (fixed)
suppressed PHP Warning on Install Plugins table
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.2 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Plugins | Keywords: | has-patch 3.2-early |
Focuses: | Cc: |
Description (last modified by )
When browsing potential plugins to install, If a plugin is installed, it'll trigger a Notice. This notice is suppressed by @, Thank you Debug bar for debugging the buged.
One is caused by closedir() being called with a null param ($plugin_subdir) - which is caused by the fact that it's not set in all cases. If the function never deals with a folder with a subdirectory, then it'll be unset.
In this case, It looks like the closedir() calls need to be placed in batter spots, ideally, after the directory resource is finished being in use, see patch.
This is in no-way a recent bug, and appears to have been introduced a long time ago.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
the error suppression can probably be removed now as well, since neither should ever produce a warning.