Changeset 589 for trunk/Modules/Log/Log.php
- Timestamp:
- Nov 18, 2013, 10:32:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Log/Log.php
r587 r589 36 36 else $IP = addslashes($_SERVER['REMOTE_ADDR']); 37 37 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; 39 39 else $UserId = 'NULL'; 40 40 $Query = 'INSERT INTO `Log` ( `User` , `Type` , `Text` , `Date` , `IP`, `URL` ) '. … … 63 63 else $IP = addslashes($_SERVER['REMOTE_ADDR']); 64 64 65 if( !is_null($User->Id)) $UserId = $User->Id;65 if(isset($User) and !is_null($User->Id)) $UserId = $User->Id; 66 66 else $UserId = 'NULL'; 67 67 $Query = 'INSERT INTO `Log` ( `User` , `Type` , `Text` , `Date` , `IP`, `URL` ) '.
Note:
See TracChangeset
for help on using the changeset viewer.