]> git.p6c8.net - jirafeau_mojo42.git/blobdiff - install.php
[BUGFIX] repair email image
[jirafeau_mojo42.git] / install.php
index 2739bc8ab7a103202927321a04bed920c40bc1e5..b400988b2ac38d0f778cfe89d082eb64e1e653f0 100644 (file)
@@ -154,7 +154,11 @@ if (isset($_POST['step']) && isset($_POST['next'])) {
         break;
 
     case 2:
-        $cfg['admin_password'] = hash('sha256', $_POST['admin_password']);
+        if (strlen($_POST['admin_password'])) {
+            $cfg['admin_password'] = hash('sha256', $_POST['admin_password']);
+        } else {
+            $cfg['admin_password'] = '';
+        }
         jirafeau_export_cfg($cfg);
         break;
 

patrick-canterino.de