From c8cdac8ceb71863180fca95da7788073d607814b Mon Sep 17 00:00:00 2001 From: Michael Houghton Date: Wed, 21 Aug 2024 08:44:33 +0100 Subject: [PATCH] Fix for method_exists parameter error --- src/Extension/FluentSiteTreeExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extension/FluentSiteTreeExtension.php b/src/Extension/FluentSiteTreeExtension.php index d4280043..a6117fa6 100644 --- a/src/Extension/FluentSiteTreeExtension.php +++ b/src/Extension/FluentSiteTreeExtension.php @@ -279,7 +279,7 @@ protected function getLocaleStatusMessage(): ?string $info = $owner->LocaleInformation($locale); // Our content hasn't been drafted or published. - if (method_exists($info && 'getSourceLocale') && $info->getSourceLocale()) { + if (method_exists($info, 'getSourceLocale') && $info->getSourceLocale()) { // If this Locale has a Fallback, then content might be getting inherited from that Fallback. return _t( __CLASS__ . '.LOCALESTATUSFLUENTINHERITED',