Skip to content

Commit

Permalink
Bugfix: disk usage web-app: error when selected folder contains only …
Browse files Browse the repository at this point in the history
…files (no folders)

Fixes #178
  • Loading branch information
gboudreau committed Jun 27, 2017
1 parent 332da77 commit e534e1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-app/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
'share' => $share,
'full_path' => $full_path
);
$total_bytes = (float) DB::getFirstValue($query, $params) or die("SQL error: " . DB::error());
$total_bytes = (float) DB::getFirstValue($query, $params);
}

if ($level_min > 1) {
Expand All @@ -66,7 +66,7 @@
'depth' => $level_min
);
}
$rows = DB::getAll($query, $params) or die("SQL error: " . DB::error());
$rows = DB::getAll($query, $params);

$total_bytes_subfolders = 0;
$results_rows = array();
Expand Down

0 comments on commit e534e1b

Please sign in to comment.