From aeea02efa2ba7ece9bd7bb9135517116e82684d4 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Fri, 22 May 2015 14:04:23 +0100 Subject: [PATCH] Fix conditional check for segment_write_key --- app/Segment/CacheRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Segment/CacheRepository.php b/app/Segment/CacheRepository.php index 586399fb..b7a293c7 100644 --- a/app/Segment/CacheRepository.php +++ b/app/Segment/CacheRepository.php @@ -47,7 +47,7 @@ class CacheRepository implements RepositoryInterface // We might not be setup yet. try { // Firstly, does the setting exist? - if (false === ($writeKey = Setting::get('segment_write_key'))) { + if (null === ($writeKey = Setting::get('segment_write_key'))) { // No, let's go fetch it. $writeKey = $this->repository->fetch(); Setting::set('segment_write_key', $writeKey);