From: Georg Ehrke Date: Thu, 15 Aug 2013 11:25:45 +0000 (+0200) Subject: add comment to make @jancborchardt happy X-Git-Tag: v6.0.0alpha2~235^2~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7a11911aead74e07ba2917be27e343ff93ca931f;p=nextcloud-server.git add comment to make @jancborchardt happy --- 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; }