WordPress.org

Make WordPress Core

Changeset 10051


Ignore:
Timestamp:
12/04/2008 10:07:57 PM (13 years ago)
Author:
ryan
Message:

Check return of dir(). see #8478

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-direct.php

    r8645 r10051  
    233233
    234234        $ret = array();
    235         $dir = dir($path);
     235        $dir = @dir($path);
     236        if ( ! $dir )
     237            return false;
    236238        while (false !== ($entry = $dir->read()) ) {
    237239            $struc = array();
Note: See TracChangeset for help on using the changeset viewer.