- if ((is_array($cacheArray['extensions']['ext_version'])) && (isset($cacheArray['extensions']['ext_version'][$ext]))) {
- // Load version from cache
- if (!empty($cacheArray['extensions']['ext_version'][$ext])) {
- // Extension is installed so we can get it's version number
- $ext_ver = $cacheArray['extensions']['ext_version'][$ext];
- } else {
- // Extension is not installed so no version number was found
- $ext_ver = "";
- }
- } elseif (!EXT_IS_ACTIVE("cache")) {
- // Load data from database
- $result = SQL_QUERY_ESC("SELECT id, ext_version FROM "._MYSQL_PREFIX."_extensions WHERE ext_name='%s' LIMIT 1",
- array($ext), __FILE__, __LINE__);
- }