cast parameter to SeedDMS_Core_File::format_filesize into int

This commit is contained in:
Uwe Steinmann 2024-01-26 12:54:15 +01:00
parent c94d940325
commit 2f5392797d

View File

@ -266,7 +266,7 @@ $(document).ready( function() {
break;
case 'sizeperuser':
foreach($data as $item) {
echo "<tr><td>".htmlspecialchars($item['key'])."</td><td>".SeedDMS_Core_File::format_filesize($item['total'])."</td></tr>";
echo "<tr><td>".htmlspecialchars($item['key'])."</td><td>".SeedDMS_Core_File::format_filesize((int) $item['total'])."</td></tr>";
$total += $item['total'];
}
echo "<tr><th></th><th>".SeedDMS_Core_File::format_filesize($total)."<th></tr>";