bug 1192: typo fix in index/52.php, logical fix in index.php
authorINOPIAE <inopiae@cacert.org>
Fri, 20 Sep 2013 09:18:31 +0000 (11:18 +0200)
committerINOPIAE <inopiae@cacert.org>
Fri, 20 Sep 2013 09:18:31 +0000 (11:18 +0200)
www/index.php

index 161dadd..e1e8e69 100644 (file)
@@ -378,8 +378,9 @@ if ($id == 52 )
        $agree = ""; if(array_key_exists('agree',$_REQUEST)) $agree=$_REQUEST['agree'];
        if (!$agree) {
                $_SESSION['profile']['loggedin'] = 0;
+               $id=4;
        }else{
-               write_user_agreement($memid, "CCA", "Login acception", "", 1);
+               write_user_agreement($_SESSION['profile']['id'], "CCA", "Login acception", "", 1);
                $_SESSION['profile']['loggedin'] = 1;
                header("location: https://".$_SERVER['HTTP_HOST']."/account.php");
                exit;