]> git.p6c8.net - jirafeau_mojo42.git/blobdiff - install.php
[BUGFIX] Prevent object ProgressEvent Error
[jirafeau_mojo42.git] / install.php
index 2739bc8ab7a103202927321a04bed920c40bc1e5..df6c599c6bbbbfc048e82a0786c36240cfb2d270 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;
 
@@ -331,7 +335,7 @@ case 4:
         jirafeau_export_cfg($cfg);
         echo '<div class="message"><p>' .
              t('Jirafeau is now fully operational') . ':' .
-             '<br /><a href="' . $cfg['web_root'] . '">' .
+             '<br /><a href="./">' .
              $cfg['web_root'].'</a></p></div>';
     }
 break;

patrick-canterino.de