mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-11 16:14:32 +00:00
Check return of dir(). see #8478
git-svn-id: https://develop.svn.wordpress.org/trunk@10051 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -232,7 +232,9 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||
return false;
|
||||
|
||||
$ret = array();
|
||||
$dir = dir($path);
|
||||
$dir = @dir($path);
|
||||
if ( ! $dir )
|
||||
return false;
|
||||
while (false !== ($entry = $dir->read()) ) {
|
||||
$struc = array();
|
||||
$struc['name'] = $entry;
|
||||
|
||||
Reference in New Issue
Block a user