From 497dcb85a8e3a01293cc7a5cb1ca0d0012ae4bf7 Mon Sep 17 00:00:00 2001 From: Anonymous Contributor Date: Wed, 23 Aug 2023 18:16:35 +0200 Subject: [PATCH] Remove unused allUsers variable and query --- pages/profile.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pages/profile.php b/pages/profile.php index a08b944..f6d6e81 100644 --- a/pages/profile.php +++ b/pages/profile.php @@ -142,24 +142,6 @@ $HTML->ReplaceSeitenInhalt("%%IARBUTTONSTATE%%", 'disabled'); } - $statementLocalUsers = $RUNTIME['PDO']->prepare("SELECT FirstName,LastName FROM UserAccounts ORDER BY PrincipalID ASC"); - $statementLocalUsers->execute(); - - $allUsers = ""; - while($row = $statementLocalUsers->fetch()) - { - $name = '"'.$row['FirstName']." ".$row['LastName'].'"'; - - if($allUsers != "") - { - $allUsers .= ",".$name; - }else{ - $allUsers .= $name; - } - } - - $allUsers .= '," "'; - include_once 'app/OpenSim.php'; $opensim = new OpenSim();