Ignore:
Timestamp:
Apr 7, 2020, 10:15:48 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/UserList.php

    r851 r880  
    77    $this->Title = T('Translators');
    88    $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'] != '')
    1313    {
    1414      $SearchQuery = ' AND (`User`.`Name` LIKE "%'.$_SESSION['search'].'%")';
     
    1717
    1818    $TeamFilter = '';
    19     if(array_key_exists('team', $_GET))
     19    if (array_key_exists('team', $_GET))
    2020    {
    2121      $TeamId = $_GET['team'] * 1;
    2222      $DbResult = $this->Database->select('Team', 'Name', '`Id`='.$TeamId);
    23       if($DbResult->num_rows > 0)
     23      if ($DbResult->num_rows > 0)
    2424      {
    2525        $Team = $DbResult->fetch_assoc();
     
    5858
    5959    $DbResult = $this->Database->query($Query);
    60     while($Line = $DbResult->fetch_assoc())
     60    while ($Line = $DbResult->fetch_assoc())
    6161    {
    6262      $XP = GetLevelMinMax($Line['XP']);
     
    7171        $PageList['Output'];
    7272
    73     return($Output);
     73    return $Output;
    7474  }
    7575}
Note: See TracChangeset for help on using the changeset viewer.