From: Sam Tuke Date: Tue, 5 Feb 2013 17:28:26 +0000 (+0000) Subject: Fixed comment typo, wrapped return value conditional on var assignment in session{} X-Git-Tag: v5.0.0alpha1~112^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=20b1d12cbfc65b604acdaac84272f6af8b0d7be4;p=nextcloud-server.git Fixed comment typo, wrapped return value conditional on var assignment in session{} --- diff --git a/apps/files_encryption/lib/session.php b/apps/files_encryption/lib/session.php index bda22ee3a03..769a40b359f 100644 --- a/apps/files_encryption/lib/session.php +++ b/apps/files_encryption/lib/session.php @@ -70,9 +70,11 @@ class Session { */ public function setLegacyKey( $legacyKey ) { - $_SESSION['legacyKey'] = $legacyKey; + if ( $_SESSION['legacyKey'] = $legacyKey ) { - return true; + return true; + + } } diff --git a/apps/files_encryption/lib/stream.php b/apps/files_encryption/lib/stream.php index 4102a681d7f..d4b993b4c06 100644 --- a/apps/files_encryption/lib/stream.php +++ b/apps/files_encryption/lib/stream.php @@ -347,7 +347,7 @@ class Stream { // // // Make sure we always start on a block start if ( 0 != ( $pointer % 8192 ) ) { - // if the current positoin of + // if the current position of // file indicator is not aligned to a 8192 byte block, fix it // so that it is