Commit 6c149b28 authored by Taylor Otwell's avatar Taylor Otwell

Clean up database session driver.

parent 5f0ffe13
......@@ -17,7 +17,11 @@ class DB implements Driver {
if ( ! is_null($session))
{
return array('id' => $session->id, 'last_activity' => $session->last_activity, 'data' => unserialize($session->data));
return array(
'id' => $session->id,
'last_activity' => $session->last_activity,
'data' => unserialize($session->data)
);
}
}
......@@ -31,7 +35,11 @@ class DB implements Driver {
{
$this->delete($session['id']);
$this->table()->insert(array('id' => $session['id'], 'last_activity' => $session['last_activity'], 'data' => serialize($session['data'])));
$this->table()->insert(array(
'id' => $session['id'],
'last_activity' => $session['last_activity'],
'data' => serialize($session['data'])
));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment