Fix initial session

This commit is contained in:
Victor Dubiniuk 2013-08-08 14:44:13 +03:00 committed by Tobias Hintze
parent 394dd6e0ca
commit 0247677108

View File

@ -35,12 +35,12 @@ class Session {
$query = \OCP\DB::prepare('INSERT INTO `*PREFIX*office_session` (`es_id`, `genesis_url`, `genesis_hash`, `owner`) VALUES (?, ?, ?, ?) '); $query = \OCP\DB::prepare('INSERT INTO `*PREFIX*office_session` (`es_id`, `genesis_url`, `genesis_hash`, `owner`) VALUES (?, ?, ?, ?) ');
$data = array( $data = array(
self::getSessionId(), 'es_id' => self::getSessionId(),
$genesis, 'genesis_url' => $genesis,
$hash, 'genesis_hash' => $hash,
\OCP\User::getUser() 'owner' => \OCP\User::getUser()
); );
$result = $query->execute($data); $result = $query->execute(array_values($data));
if ($result){ if ($result){
return $data; return $data;