diff --git a/CRM/Utils/System/DrupalBase.php b/CRM/Utils/System/DrupalBase.php index aeef820d20fd..9234c87d75fc 100644 --- a/CRM/Utils/System/DrupalBase.php +++ b/CRM/Utils/System/DrupalBase.php @@ -660,7 +660,8 @@ public function isFrontEndPage() { // 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'])); } /**