From 01c881fd2c0f0c701a83e135f2142c9db3052422 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 11 Jan 2015 23:35:38 +0100 Subject: fix multipaste in service/history Signed-off-by: Florian Pritz --- application/controllers/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/controllers') diff --git a/application/controllers/file.php b/application/controllers/file.php index 57faa62f2..5fce8afc8 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -643,7 +643,7 @@ class File extends MY_Controller { foreach ($history["multipaste_items"] as $key => $item) { $size = 0; foreach ($item["items"] as $i) { - $size += $i["filesize"]; + $size += $history["items"][$i["id"]]["filesize"]; } $history["items"][] = array( -- cgit v1.2.3-24-g4f1b