Fixed comment typo, wrapped return value conditional on var assignment in session{}

This commit is contained in:
Sam Tuke 2013-02-05 17:28:26 +00:00
parent 4ba0ab7f65
commit 20b1d12cbf
2 changed files with 5 additions and 3 deletions

View File

@ -70,12 +70,14 @@ class Session {
*/ */
public function setLegacyKey( $legacyKey ) { public function setLegacyKey( $legacyKey ) {
$_SESSION['legacyKey'] = $legacyKey; if ( $_SESSION['legacyKey'] = $legacyKey ) {
return true; return true;
} }
}
/** /**
* @brief Gets user legacy key from session * @brief Gets user legacy key from session
* @returns string $legacyKey The user's plaintext legacy key * @returns string $legacyKey The user's plaintext legacy key

View File

@ -347,7 +347,7 @@ class Stream {
// //
// // Make sure we always start on a block start // // Make sure we always start on a block start
if ( 0 != ( $pointer % 8192 ) ) { 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 // file indicator is not aligned to a 8192 byte block, fix it
// so that it is // so that it is