Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Fix session cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Sep 7, 2013
1 parent ba6fe65 commit 00d4b33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/member.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected static function deactivate($esId, $time){

public static function deleteBySessionId($esId){
$query = \OCP\DB::prepare('DELETE FROM ' . self::DB_TABLE . ' WHERE `es_id` = ?');
$query->execute($esId);
$query->execute(array($esId));
}

protected static function getInactivityPeriod(){
Expand Down
2 changes: 1 addition & 1 deletion lib/op.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static function getOpsAfter($esId, $seq){

public static function deleteBySessionId($esId){
$query = \OCP\DB::prepare('DELETE FROM ' . self::DB_TABLE . ' WHERE `es_id` = ?');
$query->execute($esId);
$query->execute(array($esId));
}

public static function removeCursor($esId, $memberId){
Expand Down
2 changes: 1 addition & 1 deletion lib/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static function getInfoByFileid($fileIds){

public static function deleteByFileid($fileId){
$query = \OCP\DB::prepare('DELETE FROM ' . self::DB_TABLE . ' WHERE `file_id` = ?');
$query->execute($fileId);
$query->execute(array($fileId));
}

protected static function getUniqueSessionId(){
Expand Down

0 comments on commit 00d4b33

Please sign in to comment.