diff --git a/pages/friends.php b/pages/friends.php index a8f91c9..1db1ed7 100644 --- a/pages/friends.php +++ b/pages/friends.php @@ -37,16 +37,16 @@ include 'app/OpenSim.php'; $opensim = new OpenSim(); - $entry = ''.trim($opensim->getUserName($Friend)).'LÖSCHEN'; - - if(count($FriendData) > 1) - { + $name = trim($opensim->getUserName($Friend)); + if(count($FriendData) > 1) { $FriendData[1] = str_replace("http://", "", $FriendData[1]); $FriendData[1] = str_replace("https://", "", $FriendData[1]); $FriendData[1] = str_replace("/", "", $FriendData[1]); - $entry = ''.htmlspecialchars(trim($opensim->getUserName($Friend)).' @ '.strtolower($FriendData[1])).'
%%CSRF%%
'; + $name = $name.' @ '.strtolower($FriendData[1]); } + $entry = ''.htmlspecialchars($name).'
%%CSRF%%
'; + $table = str_replace("%%ENTRY%%", $entry."%%ENTRY%%", $table); }