Fix for 'extension sql_patches has empty version' message
authorRoland Häder <roland@mxchange.org>
Tue, 27 Oct 2009 20:20:18 +0000 (20:20 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 27 Oct 2009 20:20:18 +0000 (20:20 +0000)
inc/modules/admin/what-extensions.php

index 5c5ca68..c6cecbd 100644 (file)
@@ -246,7 +246,7 @@ if (isGetRequestElementSet(('active'))) {
 // Case selection
 switch ($do) {
        case 'overview': // List all registered extensions
-               if (getExtensionVersion('sql_patches') >= '0.0.6') {
+               if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) {
                        // Load extension data with CSS informations
                        $result = SQL_QUERY("SELECT `id` AS ext_id, `ext_name`, `ext_active`, `ext_has_css` AS ext_css, `ext_version`
 FROM `{?_MYSQL_PREFIX?}_extensions`