Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Jul 11, 2023
1 parent 69cc7ed commit 7f8057e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shortcodes/FileShortcodeProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected static function getCachedMarkup($cache, $cacheKey, $arguments): string
{
$item = $cache->get($cacheKey);
$assetStore = Injector::inst()->get(AssetStore::class);
if ($item && !empty($item['filename']) && $item['markup']) {
if ($item && $item['markup'] && !empty($item['filename'])) {
// Initiate a protected asset grant if necessary
$allowSessionGrant = static::getGrant(null, $arguments);
if ($allowSessionGrant && $assetStore->exists($item['filename'], $item['hash'])) {
Expand Down

0 comments on commit 7f8057e

Please sign in to comment.