Skip to content
Snippets Groups Projects
Commit cc2c1a90 authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix session migration upgrade crash

parent 1f5dcc43
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,7 @@ abstract class SessionBackend {
var $isnew = false;
var $ttl;
function __construct($ttl) {
function __construct($ttl=SESSION_TTL) {
$this->ttl = $ttl;
}
......
......@@ -6,7 +6,8 @@ class MigrateDbSession extends MigrationTask {
function run() {
# How about 'dis for a hack?
osTicketSession::write(session_id(), session_encode());
$session = new DbSessionBackend();
$session->write(session_id(), session_encode());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment