Skip to content

Commit 1752c5e

Browse files
authored
Update Manager.php
1 parent 0b9faee commit 1752c5e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/Service/Manager.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,17 @@ public function destroyToken($id, $store): void
112112

113113
$rule = implode(':', [$this->config->getPrefix(), $store, $type, $id]);
114114
$keys = $this->app->cache->getTagItems($tag);
115-
116115
$parser = new Parser();
117116

118117
foreach($keys as $key) {
118+
119119
if (false !== strpos($key, $rule)) {
120120
$value = $this->app->cache->get($key);
121-
$token = $parser->parse($value);
122121

123-
$this->pushBlacklist($token);
122+
if ($value) {
123+
$token = $parser->parse($value);
124+
$this->pushBlacklist($token);
125+
}
124126
}
125127
}
126128
}

0 commit comments

Comments
 (0)