diff --git a/authentication.php b/authentication.php index c451038..e3a8cd4 100644 --- a/authentication.php +++ b/authentication.php @@ -163,6 +163,10 @@ class authentication call_user_func ($this->loggingFunc, LOG_NOTICE, "Logging in for '$authparams->email'"); + if (! array_key_exists ("lastname", $res)) + $res["lastname"] = null; + if (! array_key_exists ("firstname", $res)) + $res["firstname"] = null; $session = new \authsession (); $session-> savedata ($authparams->email, $authparams->password, $res["lastname"], $res["firstname"]);