Skip to content

Commit

Permalink
Attempted fix for issue #1500 where $config->pagefileSecure combined …
Browse files Browse the repository at this point in the history
…with module SessionHandlerDB could result in useless logged exceptions.
  • Loading branch information
ryancramerdesign committed Nov 11, 2015
1 parent bbcdc47 commit 390ba27
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ class SessionHandlerDB extends WireSessionHandler implements Module, Configurabl

$query = $database->prepare($sql);
$result = $query->execute() ? true : false;
$database->exec("SELECT RELEASE_LOCK('$id')");
$query->closeCursor();

$query = $database->prepare("SELECT RELEASE_LOCK('$id')");
$query->execute();
$query->closeCursor();

return $result;
}
Expand Down

0 comments on commit 390ba27

Please sign in to comment.