Filesystem: Avoid PHP warnings when using the FTP Sockets class.
See #35026 git-svn-id: https://develop.svn.wordpress.org/trunk@35946 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5564545ea8
commit
9249f66609
@ -694,7 +694,7 @@ class ftp_base {
|
||||
}
|
||||
foreach($list as $k=>$v) {
|
||||
$list[$k]=$this->parselisting($v);
|
||||
if($list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]);
|
||||
if( ! $list[$k] or $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]);
|
||||
}
|
||||
$ret=true;
|
||||
foreach($list as $el) {
|
||||
@ -727,7 +727,7 @@ class ftp_base {
|
||||
|
||||
foreach($list as $k=>$v) {
|
||||
$list[$k]=$this->parselisting($v);
|
||||
if($list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]);
|
||||
if( ! $list[$k] or $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]);
|
||||
}
|
||||
$ret=true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user