From 42ff43992437ed2c0bc27b7464107d9c207b8fb6 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 24 Sep 2018 15:44:14 +0200 Subject: Remove unused length field when passing upload history to view Signed-off-by: Florian Pritz --- application/controllers/Main.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/application/controllers/Main.php b/application/controllers/Main.php index fad781934..c0aded275 100644 --- a/application/controllers/Main.php +++ b/application/controllers/Main.php @@ -588,9 +588,6 @@ class Main extends MY_Controller { ); $this->data['title'] .= ' - Upload history'; - foreach($fields as $length_key => $value) { - $lengths[$length_key] = mb_strlen($value); - } foreach ($history["multipaste_items"] as $key => $item) { $size = 0; @@ -641,7 +638,6 @@ class Main extends MY_Controller { } $this->data["items"] = $history["items"]; - $this->data["lengths"] = $lengths; $this->data["fields"] = $fields; $this->data["total_size"] = format_bytes($history["total_size"]); -- cgit v1.2.3-24-g4f1b