Skip to content
Permalink
Browse files

prevent potential notice

  • Loading branch information...
flack committed Aug 11, 2019
1 parent 597c0ad commit 3f55e36829940ff847a9e2521a69a6c36e3dfb11
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/midcom/helper/imagepopup/viewer.php
@@ -39,6 +39,7 @@ public static function get_navigation(array $data)
'selected' => false
]
];
$navlinks[$data['list_type']]['selected'] = true;
if (!empty($data['object'])) {
foreach ($navlinks as &$link) {
@@ -50,7 +51,6 @@ public static function get_navigation(array $data)
if ($data['filetype'] !== 'file') {
unset($navlinks['links']);
}
$navlinks[$data['list_type']]['selected'] = true;
return $navlinks;
}
}

0 comments on commit 3f55e36

Please sign in to comment.
You can’t perform that action at this time.