Changeset 884 for trunk/Modules/Log


Ignore:
Timestamp:
Apr 8, 2020, 7:27:09 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Error during user registration.
  • Fixed: Error on user enter to new team.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Log/Log.php

    r881 r884  
    125125    $this->Title = T('System log');
    126126    $Output = '';
    127     if (array_key_exists('type', $_GET) and (is_numeric($_GET['type']))) $_SESSION['type'] = $_GET['type'] * 1;
    128     else if (!array_key_exists('type', $_SESSION)) $_SESSION['type'] = '';
     127    if (array_key_exists('type', $_GET))
     128    {
     129      if (is_numeric($_GET['type'])) $_SESSION['type'] = $_GET['type'] * 1;
     130        else $_SESSION['type'] = '';
     131    } else if (!array_key_exists('type', $_SESSION)) $_SESSION['type'] = '';
    129132
    130133    if (array_key_exists('group', $_GET)) $_SESSION['group'] = $_GET['group'];
Note: See TracChangeset for help on using the changeset viewer.