Commit 8c92c8d4 authored by Dries's avatar Dries
Browse files

- Patch by Thomas: always use db abstraction layer

parent 5270f7fd
...@@ -49,7 +49,7 @@ function sess_write($key, $value) { ...@@ -49,7 +49,7 @@ function sess_write($key, $value) {
} }
function sess_destroy($key) { function sess_destroy($key) {
db_query("DELETE FROM {sessions} WHERE sid = '$key'"); db_query("DELETE FROM {sessions} WHERE sid = '%s'", $key);
} }
function sess_gc($lifetime) { function sess_gc($lifetime) {
......
Supports Markdown
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