suppressed PHP Warning on Install Plugins table
|Reported by:||dd32||Owned by:||dd32|
Description (last modified by dd32)
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.