diff options
author | friendica <info@friendica.com> | 2013-05-06 02:17:20 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-06 02:17:20 -0700 |
commit | dc028ce8ba37aa80c05ade1f2d36371c41457671 (patch) | |
tree | 0f43fa9939185bdfee50ade5a181bf885b80ca30 | |
parent | 524f205caa1fc95371acaed95c4af12ec4dd7745 (diff) | |
download | volse-hubzilla-dc028ce8ba37aa80c05ade1f2d36371c41457671.tar.gz volse-hubzilla-dc028ce8ba37aa80c05ade1f2d36371c41457671.tar.bz2 volse-hubzilla-dc028ce8ba37aa80c05ade1f2d36371c41457671.zip |
fixes
-rw-r--r-- | include/session.php | 4 | ||||
-rw-r--r-- | install/update.php | 7 | ||||
-rw-r--r-- | version.inc | 2 |
3 files changed, 6 insertions, 7 deletions
diff --git a/include/session.php b/include/session.php index a8c466450..cdf5afbb0 100644 --- a/include/session.php +++ b/include/session.php @@ -59,8 +59,8 @@ function ref_session_destroy ($id) { function ref_session_gc($expire) { - q("DELETE FROM `session` WHERE `expire` < %d", dbesc(time())); - q("OPTIMIZE TABLE `sess_data`"); + q("DELETE FROM session WHERE expire < %d", dbesc(time())); + q("OPTIMIZE TABLE session"); return true; } diff --git a/install/update.php b/install/update.php index 31857ff2d..7dbc601c8 100644 --- a/install/update.php +++ b/install/update.php @@ -515,11 +515,10 @@ function update_r1039() { } function update_r1040() { - $r = q("ALTER TABLE `session` CHANGE `expire` `expire` BIGINT UNSIGNED NOT NULL, - ALTER TABLE `tokens` CHANGE `expires` `expires` BIGINT UNSIGNED NOT NULL "); + $r1 = q("ALTER TABLE `session` CHANGE `expire` `expire` BIGINT UNSIGNED NOT NULL "); + $r2 = q("ALTER TABLE `tokens` CHANGE `expires` `expires` BIGINT UNSIGNED NOT NULL "); - if($r) + if($r1 && $r2) return UPDATE_SUCCESS; return UPDATE_FAILED; - } diff --git a/version.inc b/version.inc index 219c18d9e..9148be8fe 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2013-05-05.304 +2013-05-06.305 |