Expanded sanity check to hopefully pass tests

Travis is failing and barking about an undefined index "cache". Found the one place I'm referencing it without checking it first and added an isset(). Not failing locally so perhaps it's an issue with PHP 5.5.6 in comparison to 5.5.7 or some other nuance I'm not aware of.
This commit is contained in:
Joshua Sherman 2013-12-30 18:11:42 -05:00
parent c0dbb39bda
commit ec4d771440

View file

@ -72,7 +72,8 @@ class Cache extends Object
{ {
parent::__construct(); parent::__construct();
if ($this->config->pickles['cache']) // @todo Shouldn't need the isset() but Travis is failing some tests
if (isset($this->config->pickles['cache']) && $this->config->pickles['cache'])
{ {
if (!is_array($this->config->pickles['cache'])) if (!is_array($this->config->pickles['cache']))
{ {