Skip to content
Snippets Groups Projects
Commit e52179db authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

prevent php-warnings, closes #3497

Closes #3497

Merge request studip/studip!2391
parent 926ae51c
No related branches found
No related tags found
No related merge requests found
......@@ -285,7 +285,7 @@ class ActionMenu
protected function getKeyForIndex($index)
{
foreach ($this->actions as $key => $value) {
if ($value['index'] === $index) {
if (!empty($value['index']) && $value['index'] === $index) {
return $key;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment