check if encryption app is enabled before trying to calculate file size

This commit is contained in:
Bjoern Schiessle 2013-09-26 16:27:14 +02:00
parent b9d6539d76
commit 62b8c36a40

View file

@ -317,7 +317,7 @@ class Proxy extends \OC_FileProxy {
public function postGetFileInfo($path, $data) {
// if path is a folder do nothing
if (is_array($data) && array_key_exists('size', $data)) {
if (\OCP\App::isEnabled('files_encryption') && is_array($data) && array_key_exists('size', $data)) {
// Disable encryption proxy to prevent recursive calls
$proxyStatus = \OC_FileProxy::$enabled;