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);