Fix conditional check for segment_write_key

This commit is contained in:
James Brooks
2015-05-22 14:04:23 +01:00
parent b15ce2c2c7
commit aeea02efa2

View File

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