aboutsummaryrefslogtreecommitdiffstats
path: root/lib/preview
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-15 13:25:45 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-15 13:25:45 +0200
commit7a11911aead74e07ba2917be27e343ff93ca931f (patch)
tree9f1590b0472b412df775e3cc190432e47765e9e1 /lib/preview
parent825d8610d0abbf1063df3019533253908142ae43 (diff)
downloadnextcloud-server-7a11911aead74e07ba2917be27e343ff93ca931f.tar.gz
nextcloud-server-7a11911aead74e07ba2917be27e343ff93ca931f.zip
add comment to make @jancborchardt happy
Diffstat (limited to 'lib/preview')
-rw-r--r--lib/preview/txt.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/preview/txt.php b/lib/preview/txt.php
index c06f445e827..a487330691e 100644
--- a/lib/preview/txt.php
+++ b/lib/preview/txt.php
@@ -17,6 +17,7 @@ class TXT extends Provider {
$content = $fileview->fopen($path, 'r');
$content = stream_get_contents($content);
+ //don't create previews of empty text files
if(trim($content) === '') {
return false;
}