From 93558542899b6ca640f69580279a05e491cf687e Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 28 May 2015 20:02:15 +0100 Subject: [PATCH] Fixed segment cache repository --- app/Segment/CacheRepository.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Segment/CacheRepository.php b/app/Segment/CacheRepository.php index c561c719..a59f5525 100644 --- a/app/Segment/CacheRepository.php +++ b/app/Segment/CacheRepository.php @@ -44,7 +44,8 @@ class CacheRepository implements RepositoryInterface */ public function fetch() { - // We might not be setup yet. + $writeKey = null; + try { // Firstly, does the setting exist? if (null === ($writeKey = Setting::get('segment_write_key'))) {