]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-extensions.php
Another column fix
[mailer.git] / inc / modules / admin / what-extensions.php
index e81f62f2496d6fe7260927dcd692c78eb4b044ce..9f3a1896fd1f1f37f1d9dfa7cb0ca76a7b674a57 100644 (file)
@@ -164,17 +164,18 @@ if (!empty($_GET['reg_ext'])) {
                $ext_name = GET_EXT_NAME($id);
                $ext_ver = GET_EXT_VERSION($ext_name);
 
-               // Free the result
-               SQL_FREERESULT($result);
-
                if ($_CONFIG['verbose_sql']) {
                        // Load SQL commands in remove mode
                        $EXT_LOAD_MODE = "remove";
+                       $EXT_ALWAYS_ACTIVE = "N";
                        $file = sprintf("%sinc/extensions/ext-%s.php", PATH, $ext_name);
-                       include($file);
+                       if (FILE_READABLE($file)) {
+                               // Load file
+                               include($file);
 
-                       // Generate extra table with loaded SQL commands
-                       $VERBOSE_OUT = EXTENSION_VERBOSE_TABLE($SQLs);
+                               // Generate extra table with loaded SQL commands
+                               $VERBOSE_OUT = EXTENSION_VERBOSE_TABLE($SQLs);
+                       }
                } // END - if
 
                // Prepare data for the row template