Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / install-inc.php
index e8304bb0c4fe90a78d24af2d9b2aa3712a77296d..4bbca9b7791fda18897333b1bcefe69047f4a5cb 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');
@@ -202,7 +202,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                                                        addFatalMessage(__FILE__, __LINE__, getMessage('INSTALL_MISSING_DUMPS'));
                                                } // END - if
 
-                                               if (getTotalFatalErrors() == 0) {
+                                               if (getTotalFatalErrors() == '0') {
                                                        // Set type and prefix from POST data
                                                        setConfigEntry('_TABLE_TYPE'  , postRequestElement('mysql', 'type'));
                                                        setConfigEntry('_MYSQL_PREFIX', postRequestElement('mysql', 'prefix'));
@@ -230,7 +230,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                                                        //* DEBUG: */ die('<pre>'.print_r(getSqls(), true).'</pre>');
 
                                                        // Are some SQLs found?
-                                                       if (countSqls() == 0) {
+                                                       if (countSqls() == '0') {
                                                                // Abort here
                                                                addFatalMessage(__FILE__, __LINE__, getMessage('INSTALL_SQL_IMPORT_FAILED'));
                                                                return;