Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / admin / what-extensions.php
index 33e4de8f72a1a7f3192f619ebd06ed1bd2961c81..88811b38b0c92c8625b64c2e1bb32385d4a08f98 100644 (file)
@@ -46,7 +46,7 @@ addMenuDescription('admin', __FILE__);
 
 // Normally we want the overview of all registered extensions
 $do = 'overview';
-$SEL = 0;
+$SEL = '0';
 
 // Are some extensions submitted?
 if (isPostRequestElementSet('sel')) {
@@ -79,7 +79,7 @@ if (isGetRequestElementSet('reg_ext')) {
        // Change settings like CSS file load
        if (isPostRequestElementSet(('modify'))) {
                // Change entries
-               $cache_update = 0;
+               $cache_update = '0';
                foreach (postRequestElement('sel') as $ext_id => $sel) {
                        // Secure id
                        $ext_id = bigintval($ext_id);
@@ -215,7 +215,7 @@ if (isGetRequestElementSet('reg_ext')) {
        $do = 'delete';
 } elseif ((isPostRequestElementSet('remove')) && ($SEL > 0) && (!isDemoModeActive())) {
        // Remove extensions from DB (you have to delete all files manually!)
-       $cache_update = 0;
+       $cache_update = '0';
        foreach (postRequestElement('sel') as $ext_id => $active) {
                // Secure id number
                $ext_id = bigintval($ext_id);
@@ -313,7 +313,7 @@ ORDER BY `ext_name` ASC", __FILE__, __LINE__);
                        SQL_FREERESULT($result);
 
                        // Disable cache update by default
-                       $cache_update = 0;
+                       $cache_update = '0';
                        if (!empty($subj)) {
                                // Extract extension's name from subject...
                                $ext_name = trim(substr($subj, 1, strpos($subj, ':') - 1));
@@ -326,7 +326,7 @@ ORDER BY `ext_name` ASC", __FILE__, __LINE__);
                                        // ... so we can finally register and load it in registration mode
                                        if (registerExtension($ext_name, $ext_id)) {
                                                // Errors?
-                                               if (getTotalFatalErrors() == 0) {
+                                               if (getTotalFatalErrors() == '0') {
                                                        // Extension was found and successfully registered
                                                        loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_EXTENSION_REGISTERED'), $ext_name));
 
@@ -370,7 +370,7 @@ ORDER BY `ext_name` ASC", __FILE__, __LINE__);
                                // Extension was not found in task management
                                loadTemplate('admin_settings_saved', false, getMessage('ADMIN_REG_FAILED_ID_404'));
                        }
-               } elseif ($task_found == 0) {
+               } elseif ($task_found == '0') {
                        // No longer assigned or old task
                        loadTemplate('admin_settings_saved', false, getMessage('ADMIN_REG_FAILED_ASSIGED'));
                } else {