Skip to content

Commit

Permalink
Merge pull request #413 from ellermister/master
Browse files Browse the repository at this point in the history
Update onedrive.php
  • Loading branch information
donwa committed Dec 23, 2018
2 parents 7188512 + c652509 commit a1bdb19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/onedrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ static function dir($path="/"){
if(is_array($hide_list) && count($hide_list)>0){
foreach($hide_list as $hide_dir){
foreach($items as $key=>$_array){
if(stristr($key,trim($hide_dir)))unset($items[$key]);
$buf = trim($hide_dir);
if($buf && stristr($key, $buf))unset($items[$key]);
}
}
}
Expand Down Expand Up @@ -262,4 +263,4 @@ static function _filesize($path){
fclose($file);
return $size;
}
}
}

0 comments on commit a1bdb19

Please sign in to comment.