Skip to content
Snippets Groups Projects
Commit 8692d6e0 authored by Georg Ringer's avatar Georg Ringer
Browse files

[TASK] Fix a PHP warning in Clipboard

Check if the key is available.

Resolves: #57300
Releases: 6.2
Change-Id: I99542a8c0516596b31342a7bce5daa58af4a6432
Reviewed-on: https://review.typo3.org/28777
Reviewed-by: Alexander Stehlik
Reviewed-by: Sebastian Fischer
Reviewed-by: Oliver Klee
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
parent d0756f9f
No related merge requests found
......@@ -429,7 +429,7 @@ class Clipboard {
*/
public function hasElements() {
foreach ($this->clipData as $data) {
if (is_array($data['el']) && !empty($data['el'])) {
if (isset($data['el']) && is_array($data['el']) && !empty($data['el'])) {
return TRUE;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment