fix check if app is enabled

This commit is contained in:
Bjoern Schiessle 2013-09-25 19:23:07 +02:00
parent 4d2dfa98c0
commit 663009f895
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ class Proxy extends \OC_FileProxy {
if (is_null(self::$enableEncryption)) {
if (\OCP\Config::getAppValue('files_encryption', 'enabled', 'true') === 'true'
if (
\OCP\App::isEnabled('files_encryption') === true
&& Crypt::mode() === 'server'
) {