From f8d73ebaf146cde28866ab92eab7864cee8d2161 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Mon, 11 Nov 2024 16:48:08 -0600 Subject: [PATCH] Fix variable initializaion if museum is not found --- lib/Artwork.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Artwork.php b/lib/Artwork.php index f6b91f9c..d7c990d4 100644 --- a/lib/Artwork.php +++ b/lib/Artwork.php @@ -186,7 +186,7 @@ class Artwork{ $this->_Museum = Museum::GetByUrl($this->MuseumUrl); } catch(Exceptions\MuseumNotFoundException){ - // Pass. + $this->_Museum = null; } }