Fix for missing variable
[mailer.git] / inc / modules / admin / admin-inc.php
index 0bc05eba306009d205f015bfad3085b31fb62922..3ddc50cb8adbd94489cb32cc9cda189894884397 100644 (file)
@@ -72,8 +72,9 @@ function addAdminAccount ($adminLogin, $passHash, $adminEmail) {
 
 // This function will be executed when the admin is not logged in and has submitted his login data
 function ifAdminLoginDataIsValid ($adminLogin, $adminPassword) {
-       // First of all, no admin login is found
+       // First of all, no admin login is found, so the admin hash is null
        $ret = '404';
+       $adminHash = null;
 
        // Get admin id from login
        $adminId = getAdminId($adminLogin);