X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FExtension%2FContainer%2FCollection.php;h=d95db44ab496986d01f8efdd4eb0f0073da35ff6;hb=a5af58bcf2ca094903fb19fb511392aeaf788c16;hp=6b69b794df5e72207246c859efbfe3463ca6c871;hpb=9eb664069bfb231babd42d519811dda94d35f4ce;p=civicrm-core.git diff --git a/CRM/Extension/Container/Collection.php b/CRM/Extension/Container/Collection.php index 6b69b794df..d95db44ab4 100644 --- a/CRM/Extension/Container/Collection.php +++ b/CRM/Extension/Container/Collection.php @@ -1,7 +1,7 @@ getKeysToContainer(); - if (isset($k2c[$key])) { + if (isset($k2c[$key]) && isset($this->containers[$k2c[$key]])) { return $this->containers[$k2c[$key]]; } else { throw new CRM_Extension_Exception_MissingException("Unknown extension: $key");