]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions-functions.php
Make sure that extension versions not 0.0.0 are handled as updates (0.0.0 is a dummy...
[mailer.git] / inc / extensions-functions.php
index 507e6a10741f9750741fd2b2881b9e531437f5e1..9c270f2ff06c669d74a2ee122a4213af8e42f714 100644 (file)
@@ -744,11 +744,11 @@ function updateExtension ($ext_name, $ext_ver, $dry_run = false) {
 }
 
 // Output verbose SQL table for extension
-function addExtensionVerboseSqlTable ($title = '', $dashed = '', $switch = false, $width = '100%') {
+function addExtensionVerboseSqlTable ($title = '{--ADMIN_SQLS_EXECUTED_ON_REMOVAL--}', $dashed = '', $switch = false, $width = '100%') {
        // Empty title?
        if (empty($title)) {
-               // Then fix it to default
-               $title = '{--ADMIN_SQLS_EXECUTED_ON_REMOVAL--}';
+               // Then abort here
+               debug_report_bug(__FUNCTION__, __LINE__, 'title is empty.');
        } // END - if
 
        // Init variables
@@ -1098,7 +1098,7 @@ function addExtensionNotes ($ext_ver) {
        // Is do we have verbose output enabled?
        if ((!isExtensionActive('sql_patches')) || (isVerboseSqlEnabled())) {
                // Update notes found?
-               if (isExtensionUpdateNoteSet($ext_ver)) {
+               if ((isExtensionUpdateNoteSet($ext_ver)) && ($ext_ver != '0.0.0')) {
                        // Update notes found
                        $content = array(
                                'ver'   => $ext_ver,