Skip to content
Snippets Groups Projects
Commit 85d3e2b7 authored by Michael Große's avatar Michael Große
Browse files

fix: check if key is set to fix PHP Notice

If a key is not set, a PHP Notice is triggered. While these are
currently suppressed, this is still a code smell.
parent 2689c55f
No related branches found
No related tags found
No related merge requests found
......@@ -340,9 +340,9 @@ class helper_plugin_extension_list extends DokuWiki_Plugin {
$link = parse_url($url);
$base = $link['host'];
if($link['port']) $base .= $base.':'.$link['port'];
if(!empty($link['port'])) $base .= $base.':'.$link['port'];
$long = $link['path'];
if($link['query']) $long .= $link['query'];
if(!empty($link['query'])) $long .= $link['query'];
$name = shorten($base, $long, 55);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment