Cases (switch command) on numbers fixed, German language strings fixed
[mailer.git] / inc / install-inc.php
index 4bbca9b7791fda18897333b1bcefe69047f4a5cb..4f642ed4ad4b3149acb8c6a4e278508e25c18ff3 100644 (file)
@@ -88,12 +88,12 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                        addTemplateToInstallContent('install_welcome');
                        break;
 
-               case 1: // Server path, base URL
+               case '1': // Server path, base URL
                        // Load template
                        addTemplateToInstallContent('install_page1');
                        break;
 
-               case 2: // MySQL data (alone!)
+               case '2': // MySQL data (alone!)
                        if (empty($mysql['dbase']))  $mysql['dbase']  = 'your_database';
                        if (empty($mysql['login']))  $mysql['login']  = 'your_login';
                        if (empty($mysql['host']))   $mysql['host']   = 'localhost';
@@ -121,7 +121,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                        addTemplateToInstallContent('install_page2', $content);
                        break;
 
-               case 3:
+               case '3':
                        // Set more values
                        $content['spath']      = postRequestElement('spath');
                        $content['burl']       = postRequestElement('burl');
@@ -162,7 +162,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                        addTemplateToInstallContent('install_page3', $content);
                        break;
 
-               case 5: // Misc settings
+               case '5': // Misc settings
                        // General settings
                        $content['spath']  = postRequestElement('spath');
                        $content['burl']   = postRequestElement('burl');