Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit c24866a

Browse files
melangervyskocilpavel
authored andcommitted
Update ListOfSps.php
1 parent cdded31 commit c24866a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/ListOfSps.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ public static function getClass($attribute)
2525
}
2626
}
2727

28-
public static function printServiceName($service)
28+
public static function printServiceName($name, $loginURL = null)
2929
{
30-
if (empty($service['loginURL']['value'])
30+
if (empty($loginURL))
3131
) {
32-
return $service['facility']->getName();
32+
return $name;
3333
}
3434

35-
return "<a class='customLink' href='" . $service['loginURL']['value'] . "'>" .
36-
$service['facility']->getName() . "</a>";
35+
return "<a class='customLink' href='" . htmlspecialchars($loginURL) . "'>" . htmlspecialchars($name) . "</a>";
3736
}
3837

3938
public static function printAttributeValue($attribute, $service, $attr)

0 commit comments

Comments
 (0)