From ec4d771440832c718efd2dab0333fb1d78e2430d Mon Sep 17 00:00:00 2001 From: Joshua Sherman Date: Mon, 30 Dec 2013 18:11:42 -0500 Subject: [PATCH] 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. --- classes/Cache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Cache.php b/classes/Cache.php index 0aba116..1d855af 100644 --- a/classes/Cache.php +++ b/classes/Cache.php @@ -72,7 +72,8 @@ class Cache extends Object { 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'])) {