<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
}
return $errors;
}
- /**
+
+ /**
* {@inheritdoc}
*/
public function getKeys() {
*/
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");