Changeset 35946
- Timestamp:
- 12/15/2015 03:11:17 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-ftp.php
r34282 r35946 695 695 foreach($list as $k=>$v) { 696 696 $list[$k]=$this->parselisting($v); 697 if( $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]);697 if( ! $list[$k] or $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]); 698 698 } 699 699 $ret=true; … … 728 728 foreach($list as $k=>$v) { 729 729 $list[$k]=$this->parselisting($v); 730 if( $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]);730 if( ! $list[$k] or $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]); 731 731 } 732 732 $ret=true;
Note: See TracChangeset
for help on using the changeset viewer.