summaryrefslogtreecommitdiffstats
path: root/application/views/file_plaintext
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-15 14:23:20 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-04-15 14:25:56 +0200
commit02e9ebb4c2f50349356fb6863b680d45d65d4f70 (patch)
tree7a2d27d4cdf629449e62fe1ef9a5aced6457a41f /application/views/file_plaintext
parent5986e00660657aecacef782ca1ee181e48b2884f (diff)
upload_hstory: Initialize $lengths correctly
If you only uploaded short filenames "Filename" could e longer than any filename, resulting in a broken table. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/file_plaintext')
-rw-r--r--application/views/file_plaintext/upload_history.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/application/views/file_plaintext/upload_history.php b/application/views/file_plaintext/upload_history.php
index 4e9308d91..87586babd 100644
--- a/application/views/file_plaintext/upload_history.php
+++ b/application/views/file_plaintext/upload_history.php
@@ -1,11 +1,11 @@
<?php
echo
- mb_str_pad("ID", $lengths["id"])." | "
- .mb_str_pad("Filename", $lengths["filename"])." | "
- .mb_str_pad("Mimetype", $lengths["mimetype"])." | "
- .mb_str_pad("Date", $lengths["date"])." | "
- .mb_str_pad("Hash", $lengths["hash"])." | "
- .mb_str_pad("Size", $lengths["filesize"])."\n";
+ mb_str_pad($fields["id"], $lengths["id"])." | "
+ .mb_str_pad($fields["filename"], $lengths["filename"])." | "
+ .mb_str_pad($fields["mimetype"], $lengths["mimetype"])." | "
+ .mb_str_pad($fields["date"], $lengths["date"])." | "
+ .mb_str_pad($fields["hash"], $lengths["hash"])." | "
+ .mb_str_pad($fields["filesize"], $lengths["filesize"])."\n";
foreach($query as $key => $item) {
echo