From 40ff2d8082fa5bac225f2050abf16d23d76076b1 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 29 Jul 2024 11:20:59 +1200 Subject: [PATCH] FIX Don't cause errors if elemental isn't installed --- code/elemental/MultiElementalAreasExtension.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/elemental/MultiElementalAreasExtension.php b/code/elemental/MultiElementalAreasExtension.php index 281cf50..43adee9 100644 --- a/code/elemental/MultiElementalAreasExtension.php +++ b/code/elemental/MultiElementalAreasExtension.php @@ -5,6 +5,10 @@ use DNADesign\Elemental\Extensions\ElementalAreasExtension; use DNADesign\Elemental\Models\ElementalArea; +if (!class_exists(ElementalAreasExtension::class)) { + return; +} + /** * This is used to test multiple elemental areas on a page */