diff options
| author | Rami Jasim <minecraftmrgold@gmail.com> | 2024-10-23 08:01:12 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-10-23 08:01:12 +0000 |
| commit | 07dd571a8007a8413e7f4ae3c388d4702036af88 (patch) | |
| tree | f8ea6dd3e531b461339b75b61b76d73a49e77bd8 /lib | |
| parent | 0142b925f6e4d3f8e3c0660b5c8c4bc9377b3a0e (diff) | |
Cache::getItems sollte associative array liefern
Closes #4740
Merge request studip/studip!3539
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/classes/cache/Cache.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/classes/cache/Cache.php b/lib/classes/cache/Cache.php index d66bf4c..97f294c 100644 --- a/lib/classes/cache/Cache.php +++ b/lib/classes/cache/Cache.php @@ -149,10 +149,7 @@ abstract class Cache implements CacheItemPoolInterface { $items = []; foreach ($keys as $key) { - $item = $this->getItem($key); - if ($item instanceof Item) { - $items[] = $item; - } + $items[$key] = $this->getItem($key); } return $items; } |
