<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*/
*/
public function getContainer($key) {
$k2c = $this->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");