From 816228c180707f0f711c25fa8e9add852c0ce203 Mon Sep 17 00:00:00 2001 From: joelpittet Date: Sat, 18 Dec 2021 07:45:59 +0000 Subject: [PATCH 1/2] Update system.admin.inc --- modules/system/system.admin.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index b7e6fc9e706b..40908c1a2779 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -839,7 +839,7 @@ function system_modules($form, $form_state = array()) { elseif (isset($visible_files[$requires])) { $requires_name = $files[$requires]->info['name']; // Disable this module if it is incompatible with the dependency's version. - if ($incompatible_version = drupal_check_incompatibility($v, str_replace(DRUPAL_CORE_COMPATIBILITY . '-', '', $files[$requires]->info['version']))) { + if ($incompatible_version = drupal_check_incompatibility($v, str_replace(DRUPAL_CORE_COMPATIBILITY . '-', '', (string) $files[$requires]->info['version']))) { $extra['requires'][$requires] = t('@module (incompatible with version @version)', array( '@module' => $requires_name . $incompatible_version, '@version' => $files[$requires]->info['version'], -- GitLab From f1568574bd2ede98fa72e56aca9565cfe0d25cd1 Mon Sep 17 00:00:00 2001 From: joelpittet Date: Sat, 18 Dec 2021 07:46:39 +0000 Subject: [PATCH 2/2] Update system.install --- modules/system/system.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/system.install b/modules/system/system.install index 4f3b28991da5..3714c8e501c3 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -489,7 +489,7 @@ function system_requirements($phase) { // Check for an incompatible version. $required_file = $files[$required_module]; $required_name = $required_file->info['name']; - $version = str_replace(DRUPAL_CORE_COMPATIBILITY . '-', '', $required_file->info['version']); + $version = str_replace(DRUPAL_CORE_COMPATIBILITY . '-', '', (string) $required_file->info['version']); $compatibility = drupal_check_incompatibility($requirement, $version); if ($compatibility) { $compatibility = rtrim(substr($compatibility, 2), ')'); -- GitLab