* experiments on user creation... not yet ready, but maybe helpfull to others.
[citadel.git] / ctdlphp / ctdlsession.php
index db56974ef3c398f9ea94674744104cc2554efe07..9dbf0ec22aa6736ed4d138aca88f08f190b34850 100644 (file)
@@ -71,14 +71,14 @@ function establish_citadel_session() {
 
                ctdl_iden($identity);   // Identify client
                ctdl_MessageFormatsPrefered(array("text/html","text/plain"));
-               if ($_SESSION["username"]) {
+               if (isset($_SESSION["username"])) {
                        login_existing_user(
                                $_SESSION["username"],
                                $_SESSION["password"]
                        );
                }
 
-               if ($_SESSION["room"]) {
+               if (isset($_SESSION["room"])) {
                        ctdl_goto($_SESSION["room"]);
                }
                else {