fix setFileKey() call in updateKeyfile hook

This commit is contained in:
Bjoern Schiessle 2012-08-08 15:32:05 +02:00
parent dc596a72c3
commit 5983643abd
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class Hooks {
public static function updateKeyfile( $params ) {
if (Crypt::mode(\OCP\User::getUser()) == 'client')
if (isset($params['properties']['key'])) {
Keymanager::setFileKey(\OCP\User::getUser(), $params['path'], $params['properties']['key']);
Keymanager::setFileKey($params['path'], $params['properties']['key']);
} else {
error_log("Client side encryption is enabled but the client doesn't provide a encryption key for the file!");
}