Changeset 589 for trunk/Modules/Log


Ignore:
Timestamp:
Nov 18, 2013, 10:32:30 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: If referenced unknown subpage then show main page with error message and log event.
File:
1 edited

Legend:

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

    r587 r589  
    3636          else $IP = addslashes($_SERVER['REMOTE_ADDR']);
    3737       
    38         if(!is_null($this->System->User->Id)) $UserId = $this->System->User->Id;
     38        if(isset($User) and !is_null($this->System->User->Id)) $UserId = $this->System->User->Id;
    3939          else $UserId = 'NULL';
    4040        $Query = 'INSERT INTO `Log` ( `User` , `Type` , `Text` , `Date` , `IP`, `URL` ) '.
     
    6363          else $IP = addslashes($_SERVER['REMOTE_ADDR']);
    6464
    65         if(!is_null($User->Id)) $UserId = $User->Id;
     65        if(isset($User) and !is_null($User->Id)) $UserId = $User->Id;
    6666          else $UserId = 'NULL';
    6767        $Query = 'INSERT INTO `Log` ( `User` , `Type` , `Text` , `Date` , `IP`, `URL` ) '.
Note: See TracChangeset for help on using the changeset viewer.