diff --git a/lib/Cake/Model/Datasource/Session/DatabaseSession.php b/lib/Cake/Model/Datasource/Session/DatabaseSession.php index 0a8b3c25a..cd4b904a8 100644 --- a/lib/Cake/Model/Datasource/Session/DatabaseSession.php +++ b/lib/Cake/Model/Datasource/Session/DatabaseSession.php @@ -92,7 +92,7 @@ class DatabaseSession implements CakeSessionHandlerInterface { 'conditions' => array($this->_model->alias . '.' . $this->_model->primaryKey => $id) )); - if(empty($row[$this->_model->alias])){ + if (empty($row[$this->_model->alias])) { return ''; } diff --git a/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php b/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php index 48b1fb576..294d46670 100644 --- a/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php @@ -201,7 +201,7 @@ class SessionComponentTest extends CakeTestCase { $this->assertTrue($Session->write('Test', $array)); $this->assertEquals($Session->read('Test'), $array); $Session->delete('Test'); - + $this->assertTrue($Session->write(array('Test' => 'some value'))); $this->assertEquals('some value', $Session->read('Test')); $Session->delete('Test');