From 446bb2d5c7d18638baf60dda45a95a1e730a7f48 Mon Sep 17 00:00:00 2001 From: Swastik Pareek Date: Wed, 2 Sep 2020 13:40:33 +0100 Subject: [PATCH] dev/core#1987 Fix Drupal Base 'isFrontEndPage' function --- CRM/Utils/System/DrupalBase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/System/DrupalBase.php b/CRM/Utils/System/DrupalBase.php index aeef820d20..9234c87d75 100644 --- a/CRM/Utils/System/DrupalBase.php +++ b/CRM/Utils/System/DrupalBase.php @@ -660,7 +660,8 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { // Get the menu for above URL. $item = CRM_Core_Menu::get($path); - return !empty($item['is_public']); + // In case the URL is not a civicrm page (a drupal page) we set the FE theme to TRUE - covering the corner case + return (empty($item) || !empty($item['is_public'])); } /** -- 2.25.1