From 5b94c4fe41049533ee74843ff20ecd05f49a994d Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 25 Dec 2015 19:57:38 +0100 Subject: [PATCH] Yes is no and no is yes ... --- include/auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/auth.php b/include/auth.php index 318b3d2580..a5b6432fff 100644 --- a/include/auth.php +++ b/include/auth.php @@ -209,12 +209,12 @@ else { } function new_cookie($time) { - if (get_config('system', 'disable_database_session')) + if (!get_config('system', 'disable_database_session')) $old_sid = session_id(); session_set_cookie_params($time); - if (get_config('system', 'disable_database_session')) { + if (!get_config('system', 'disable_database_session')) { session_regenerate_id(false); q("UPDATE session SET sid = '%s' WHERE sid = '%s'", dbesc(session_id()), dbesc($old_sid)); } -- 2.39.5