diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-28 20:50:14 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-28 20:50:14 +0200 |
commit | 71a532fc4d45fafa66ce748e1296f03f57c2ea75 (patch) | |
tree | ca5cecea6cfbf0e2999c920289a77a53107d9b13 /apps | |
parent | 1d720099c328fe3084e05fe3d2bdd9e49acb8dfe (diff) | |
download | nextcloud-server-71a532fc4d45fafa66ce748e1296f03f57c2ea75.tar.gz nextcloud-server-71a532fc4d45fafa66ce748e1296f03f57c2ea75.zip |
fixed if fopen returns false typically on external storage
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_encryption/lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php index 48485cf2e86..2452f4c6ae3 100644 --- a/apps/files_encryption/lib/util.php +++ b/apps/files_encryption/lib/util.php @@ -541,7 +541,7 @@ class Util { // we only need 24 byte from the last chunk $data = ''; $handle = $this->view->fopen($path, 'r'); - if (!fseek($handle, -24, SEEK_END)) { + if (is_resource($handle) && !fseek($handle, -24, SEEK_END)) { $data = fgets($handle); } |