Add return null just for safety.

This commit is contained in:
Taylor Dondich
2019-12-09 12:20:21 -08:00
parent 8655fcdb72
commit 100fd62aaa

View File

@@ -220,6 +220,8 @@ class enterprisePlugin extends PMPlugin
$value = Cache::get($cacheKey, function () {
if (file_exists(PATH_DATA_SITE . "ee")) {
return trim(file_get_contents(PATH_DATA_SITE . "ee"));
} else {
return null;
}
});
if ($value) {