diff --git a/CRM/Utils/System/DrupalBase.php b/CRM/Utils/System/DrupalBase.php index aeef820d20fde883262d4ed4d11e9cd1bf3c47bc..9234c87d75fce66ae9c93a288e6b6d423c7b8747 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'])); } /**