diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-29 18:04:54 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-29 18:04:54 -0700 |
commit | 994830f611c7736716883a6b219fb2848ac3ea24 (patch) | |
tree | 889fb86c8deb51ffa2eb35b1119c592cbe86702a /installer/installer.php | |
parent | 2925a1c7978c436c11c0a6c4dac9fa3ddc0a2396 (diff) |
Fix the code to specify which columns its inserting into. Without
that it's fragile, and I broke it when I sorted the columns
alphabetically a day or two ago.
Diffstat (limited to 'installer/installer.php')
-rw-r--r-- | installer/installer.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/installer/installer.php b/installer/installer.php index 38fde1fe..ab2963ba 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -110,7 +110,8 @@ class installer { $data .= ";after_install|i:1"; $data .= ";last_activity|i:$now"; $data = base64_encode($data); - $sql = "INSERT INTO {sessions} VALUES('$session_id', $now, '$data')"; + $sql = "INSERT INTO {sessions}(`session_id`, `last_activity`, `data`) " . + "VALUES('$session_id', $now, '$data')"; $sql = self::prepend_prefix($config["prefix"], $sql); if (mysql_query($sql)) { setcookie("g3sid", $session_id, 0, "/", "", false, false); |