summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/file.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 90e686c8d..0c2db3e0c 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -135,11 +135,13 @@ class File extends CI_Controller {
foreach($query as $key => $item) {
$query[$key]["date"] = date("r", $item["date"]);
- // Keep track of longest string to pad plaintext output correctly
- foreach($fields as $length_key) {
- $len = mb_strlen($query[$key][$length_key]);
- if ($len > $lengths[$length_key]) {
- $lengths[$length_key] = $len;
+ if ($this->var->cli_client) {
+ // Keep track of longest string to pad plaintext output correctly
+ foreach($fields as $length_key) {
+ $len = mb_strlen($query[$key][$length_key]);
+ if ($len > $lengths[$length_key]) {
+ $lengths[$length_key] = $len;
+ }
}
}
}