Skip to content

Commit 78d697e

Browse files
author
Baldur Rensch
committed
Removed unnecessary else
1 parent 718b3e2 commit 78d697e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ public function read($id)
144144
if (count($sessionRows) == 1) {
145145
if ($this->dbOptions['base64_encode']) {
146146
return base64_decode($sessionRows[0][0]);
147-
} else {
148-
return $sessionRows[0][0];
149-
}
147+
}
148+
149+
return $sessionRows[0][0];
150150
}
151151

152152
// session does not exist, create it

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ public function testSessionGC()
6161
$this->assertEquals(0, count($this->pdo->query('SELECT * FROM sessions')->fetchAll()));
6262
}
6363

64-
/**
65-
* This tests disabling the base64_encoding option.
66-
*/
6764
public function testEncoding()
6865
{
6966
$storage = new PdoSessionHandler($this->pdo, array('db_table' => 'sessions'), array());

0 commit comments

Comments
 (0)