Skip to content

Commit

Permalink
minor fix in calc folder size
Browse files Browse the repository at this point in the history
  • Loading branch information
dio-el-claire committed Sep 13, 2012
1 parent f2afa9f commit 00f3a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/elFinderVolumeDriver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2263,7 +2263,7 @@ protected function countSize($path) {
foreach ($this->getScandir($path) as $stat) {
$size = $stat['mime'] == 'directory' && $stat['read']
? $this->countSize($this->_joinPath($path, $stat['name']))
: $stat['size'];
: isset($stat['size']) ? intval($stat['size']) : 0;
if ($size > 0) {
$result += $size;
}
Expand Down

0 comments on commit 00f3a2c

Please sign in to comment.