Changeset 880 for trunk/Modules/User/UserList.php
- Timestamp:
- Apr 7, 2020, 10:15:48 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/UserList.php
r851 r880 7 7 $this->Title = T('Translators'); 8 8 $Output = ''; 9 if (array_key_exists('search', $_GET)) $_SESSION['search'] = $_GET['search'];10 else if (!array_key_exists('search', $_SESSION)) $_SESSION['search'] = '';11 if (array_key_exists('search', $_GET) and ($_GET['search'] == '')) $_SESSION['search'] = '';12 if ($_SESSION['search'] != '')9 if (array_key_exists('search', $_GET)) $_SESSION['search'] = $_GET['search']; 10 else if (!array_key_exists('search', $_SESSION)) $_SESSION['search'] = ''; 11 if (array_key_exists('search', $_GET) and ($_GET['search'] == '')) $_SESSION['search'] = ''; 12 if ($_SESSION['search'] != '') 13 13 { 14 14 $SearchQuery = ' AND (`User`.`Name` LIKE "%'.$_SESSION['search'].'%")'; … … 17 17 18 18 $TeamFilter = ''; 19 if (array_key_exists('team', $_GET))19 if (array_key_exists('team', $_GET)) 20 20 { 21 21 $TeamId = $_GET['team'] * 1; 22 22 $DbResult = $this->Database->select('Team', 'Name', '`Id`='.$TeamId); 23 if ($DbResult->num_rows > 0)23 if ($DbResult->num_rows > 0) 24 24 { 25 25 $Team = $DbResult->fetch_assoc(); … … 58 58 59 59 $DbResult = $this->Database->query($Query); 60 while ($Line = $DbResult->fetch_assoc())60 while ($Line = $DbResult->fetch_assoc()) 61 61 { 62 62 $XP = GetLevelMinMax($Line['XP']); … … 71 71 $PageList['Output']; 72 72 73 return ($Output);73 return $Output; 74 74 } 75 75 }
Note:
See TracChangeset
for help on using the changeset viewer.