Add return null just for safety.
This commit is contained in:
@@ -220,6 +220,8 @@ class enterprisePlugin extends PMPlugin
|
|||||||
$value = Cache::get($cacheKey, function () {
|
$value = Cache::get($cacheKey, function () {
|
||||||
if (file_exists(PATH_DATA_SITE . "ee")) {
|
if (file_exists(PATH_DATA_SITE . "ee")) {
|
||||||
return trim(file_get_contents(PATH_DATA_SITE . "ee"));
|
return trim(file_get_contents(PATH_DATA_SITE . "ee"));
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if ($value) {
|
if ($value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user