]> git.mxchange.org Git - friendica.git/commitdiff
Yes is no and no is yes ...
authorMichael Vogel <icarus@dabo.de>
Fri, 25 Dec 2015 18:57:38 +0000 (19:57 +0100)
committerMichael Vogel <icarus@dabo.de>
Fri, 25 Dec 2015 18:57:38 +0000 (19:57 +0100)
include/auth.php

index 318b3d25800bd32b8404bf5b655e5f899a7db2d7..a5b6432fff37c35cc31070eb7ae585129accfae1 100644 (file)
@@ -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));
        }